From df7f12f0d4111a4646d5cad261473894676df132 Mon Sep 17 00:00:00 2001 From: Lakshmi Yadlapati Date: Mon, 1 May 2023 09:41:11 -0500 Subject: 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 --- redfish-core/lib/pcie.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3