From e28ce0e6787bda84a6d8fabee12cbb6cea94018c Mon Sep 17 00:00:00 2001 From: Nan Zhou Date: Thu, 13 Oct 2022 22:28:36 +0000 Subject: pcie: fix Members@odata.count I believe this was a typo. We shouldn't return when a deviceId is not found. Tested: s7106 doesn't have PCIe backend configured. I tested it on a downstream system and Members@odata.count shows up. Signed-off-by: Nan Zhou Change-Id: I38491caf8998fac5fafa0c0f07396cf32066348b --- 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 13d5ab93eb..9bc2dbfcd7 100644 --- a/redfish-core/lib/pcie.hpp +++ b/redfish-core/lib/pcie.hpp @@ -322,7 +322,7 @@ inline void requestRoutesSystemPCIeFunctionCollection(App& app) } if (property == nullptr || !property->empty()) { - return; + continue; } nlohmann::json::object_t pcieFunction; pcieFunction["@odata.id"] = -- cgit v1.2.3