diff options
author | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-05-01 17:41:11 +0300 |
---|---|---|
committer | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-05-01 19:14:49 +0300 |
commit | df7f12f0d4111a4646d5cad261473894676df132 (patch) | |
tree | a9b19bfdfbc7914ba00a6ab20203578d7f6dc284 /redfish-core/lib/pcie.hpp | |
parent | 94c3a10b94c3ce063d6c1aed3a597f0d524594d5 (diff) | |
download | bmcweb-df7f12f0d4111a4646d5cad261473894676df132.tar.xz |
Fix PCIeDevice redfish validator failure
Specify correct interface for getSubTreePaths in getPCIeDeviceList.
This commit addresses a Redfish validator failure that occurred after a
previous commit.
'''
https://github.com/openbmc/bmcweb/commit/94c3a10b94c3ce063d6c1aed3a597f0d524594d5
'''
Both the inventory path and interface were incorrect, and the inventory
path was fixed in the previous commit. This commit fixes the interface
in the getSubTreePaths function to ensure that it returns the correct
PCIeDevice list. Without the correct interface, the function was
returning incorrect devices, which was causing the Redfish validator
failure.
Tested: Validator passed for PCIeDevice
Change-Id: Iab6a26ee0dd933be6cf371bdd13e5d10d6d10efa
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/pcie.hpp')
-rw-r--r-- | redfish-core/lib/pcie.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp index 8dc922d1cc..cda1323905 100644 --- a/redfish-core/lib/pcie.hpp +++ b/redfish-core/lib/pcie.hpp @@ -100,7 +100,7 @@ static inline void const std::string& name) { dbus::utility::getSubTreePaths( - inventoryPath, 1, {}, + inventoryPath, 1, pcieDeviceInterface, [asyncResp, name](const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreePathsResponse& pcieDevicePaths) { |