From a818d15aa2c5cf583e708c2117a43a7e0bf70914 Mon Sep 17 00:00:00 2001 From: Jiaqing Zhao Date: Wed, 19 Jan 2022 19:52:47 +0800 Subject: Fix undefined property in PCIeFunctionCollection According to Redfish spec, current "PCIeFunctions@odata.count" in PCIeFunctionCollection should be "Members@odata.count". Tested: Redfish validator passed. Change-Id: Iaabcad0f19b619eea26e2902944d3262fe499a5b Signed-off-by: Jiaqing Zhao --- 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 1904c26eb9..78fa66924e 100644 --- a/redfish-core/lib/pcie.hpp +++ b/redfish-core/lib/pcie.hpp @@ -312,7 +312,7 @@ inline void requestRoutesSystemPCIeFunctionCollection(App& app) std::to_string(functionNum)}}); } } - asyncResp->res.jsonValue["PCIeFunctions@odata.count"] = + asyncResp->res.jsonValue["Members@odata.count"] = pcieFunctionList.size(); }; std::string escapedPath = std::string(pciePath) + "/" + device; -- cgit v1.2.3