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
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp
index 13d5ab9..9bc2dbf 100644
--- a/redfish-core/lib/pcie.hpp
+++ b/redfish-core/lib/pcie.hpp
@@ -322,7 +322,7 @@
}
if (property == nullptr || !property->empty())
{
- return;
+ continue;
}
nlohmann::json::object_t pcieFunction;
pcieFunction["@odata.id"] =