Redfish: Fix bug that cause validator failed
MaxImageSizeBytes was added in this commit:
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/43775
but the UpdateService version number was not changed.
MaxImageSizeBytes in UpdateService belongs to UpdateService.v1_5_0.json
https://redfish.dmtf.org/schemas/v1/UpdateService.v1_5_0.json
Tested: Validator passes
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I68f01ce5fb8f8e715c0e0fad6a34ab609acca01b
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 7ca0787..02a4fad 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -364,7 +364,7 @@
asyncResp->res, url, "Image version already exists");
redfish::messages::resourceAlreadyExists(
- asyncResp->res, "UpdateService.v1_4_0.UpdateService",
+ asyncResp->res, "UpdateService.v1_5_0.UpdateService",
"Version", "uploaded version");
}
else if (*type ==
@@ -513,7 +513,7 @@
get)([](const crow::Request&,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) {
asyncResp->res.jsonValue["@odata.type"] =
- "#UpdateService.v1_4_0.UpdateService";
+ "#UpdateService.v1_5_0.UpdateService";
asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/UpdateService";
asyncResp->res.jsonValue["Id"] = "UpdateService";
asyncResp->res.jsonValue["Description"] =