summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLakshmi Yadlapati <lakshmiy@us.ibm.com>2023-05-01 17:41:11 +0300
committerLakshmi Yadlapati <lakshmiy@us.ibm.com>2023-05-01 19:14:49 +0300
commitdf7f12f0d4111a4646d5cad261473894676df132 (patch)
treea9b19bfdfbc7914ba00a6ab20203578d7f6dc284
parent94c3a10b94c3ce063d6c1aed3a597f0d524594d5 (diff)
downloadbmcweb-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>
-rw-r--r--redfish-core/lib/pcie.hpp2
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) {