diff options
author | Tony Lee <tony.lee@quantatw.com> | 2022-11-18 08:48:27 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-11-28 20:53:52 +0300 |
commit | 973c1355f161c4f71d7c5e3e2016cc86881b73fa (patch) | |
tree | f4ee99ad2727c836a5107b8d70b390f2e16a49aa /redfish-core/lib | |
parent | 1aee751c0feeb9b369eb76f09d7910d2bb124d61 (diff) | |
download | bmcweb-973c1355f161c4f71d7c5e3e2016cc86881b73fa.tar.xz |
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
Diffstat (limited to 'redfish-core/lib')
-rw-r--r-- | redfish-core/lib/pcie.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp index 64fe70e7a1..ebbf9268e3 100644 --- a/redfish-core/lib/pcie.hpp +++ b/redfish-core/lib/pcie.hpp @@ -389,7 +389,7 @@ inline void requestRoutesSystemPCIeFunction(App& app) continue; } } - if (devIdProperty == nullptr || !devIdProperty->empty()) + if (devIdProperty == nullptr || devIdProperty->empty()) { messages::resourceNotFound(asyncResp->res, "PCIeFunction", function); |