Fix undefined property in FirmwareInventory
There is an undefined property "Members@odata.count" in /redfish/v1/
UpdateService/FirmwareInventory/{BIOSImage}. This property should be
"RelatedItem@odata.count" according to Redfish spec.
Fixes 7e860f1550c8 ("Remove Redfish Node class")
Tested:
Redfish validator passed.
Change-Id: I915295a20a528c2febe244ed2b400ae460392512
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 841463a..cd49f57 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -774,7 +774,7 @@
nlohmann::json& relatedItem = aResp->res.jsonValue["RelatedItem"];
relatedItem.push_back(
{{"@odata.id", "/redfish/v1/Systems/system/Bios"}});
- aResp->res.jsonValue["Members@odata.count"] = relatedItem.size();
+ aResp->res.jsonValue["RelatedItem@odata.count"] = relatedItem.size();
}
else
{