summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNan Zhou <nanzhoumails@gmail.com>2022-10-14 01:28:36 +0300
committerEd Tanous <ed@tanous.net>2022-10-18 00:13:44 +0300
commite28ce0e6787bda84a6d8fabee12cbb6cea94018c (patch)
treee9c78a7a94f3837ae81b8eac3042d34de45e9e7d
parent525fc07224884d3640e5c4a1b6a551aee024f7bd (diff)
downloadbmcweb-e28ce0e6787bda84a6d8fabee12cbb6cea94018c.tar.xz
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 <nanzhoumails@gmail.com> Change-Id: I38491caf8998fac5fafa0c0f07396cf32066348b
-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 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"] =