pcie:Fix get PCIeFunction
GET /redfish/v1/Systems/system/PCIeDevices/<str>/PCIeFunctions/<str>
return resourceNotFound messages.
Test:
GET /redfish/v1/Systems/system/PCIeDevices/<str>/PCIeFunctions/<str>
return the expected information of PCIeDevices.
Signed-off-by: Tony Lee <tony.lee@quantatw.com>
Change-Id: I1587a74e77225939dec8030bba7fb04865e8051e
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp
index 64fe70e..ebbf926 100644
--- a/redfish-core/lib/pcie.hpp
+++ b/redfish-core/lib/pcie.hpp
@@ -389,7 +389,7 @@
continue;
}
}
- if (devIdProperty == nullptr || !devIdProperty->empty())
+ if (devIdProperty == nullptr || devIdProperty->empty())
{
messages::resourceNotFound(asyncResp->res, "PCIeFunction",
function);