summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-01-19 14:52:47 +0300
committerEd Tanous <ed@tanous.net>2022-01-20 22:23:11 +0300
commita818d15aa2c5cf583e708c2117a43a7e0bf70914 (patch)
treeb82598a741a5c5ea579cb23a34777ac60d4140fd
parent727dc83fbc5ee1e5397dfc427871c203dc547eb0 (diff)
downloadbmcweb-a818d15aa2c5cf583e708c2117a43a7e0bf70914.tar.xz
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 <jiaqing.zhao@intel.com>
-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 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;