diff options
author | Chicago Duan <duanzhijia01@inspur.com> | 2021-06-10 13:20:36 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-06-10 23:59:22 +0300 |
commit | 0588a3b929b2a88784db2f3dcac04d69260fb585 (patch) | |
tree | 4dbd3a8bb5cab0a2e62490289cbabf086e28d3a7 /redfish-core/lib/update_service.hpp | |
parent | fc8a2b87a8d5daf67ece24b0b259e507b3442bd7 (diff) | |
download | bmcweb-0588a3b929b2a88784db2f3dcac04d69260fb585.tar.xz |
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
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 7ca078701b..02a4fad37d 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -364,7 +364,7 @@ static void monitorForSoftwareAvailable( 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 @@ inline void requestRoutesUpdateService(App& app) 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"] = |