summaryrefslogtreecommitdiff
path: root/redfish-core/lib/update_service.hpp
diff options
context:
space:
mode:
authorAppaRao Puli <apparao.puli@linux.intel.com>2020-01-29 00:06:32 +0300
committerAppaRao Puli <apparao.puli@linux.intel.com>2020-02-03 20:57:27 +0300
commit3f8a743a5179eb618518ff04b98202a997342bb0 (patch)
treeaf0a5e1f73db9aead44687fd2c7ec7239ea3a5e7 /redfish-core/lib/update_service.hpp
parentc7a29d366c958bd20509ba88d17c4fb3cb38d7ef (diff)
downloadbmcweb-3f8a743a5179eb618518ff04b98202a997342bb0.tar.xz
Add support to fetch the 'Updateable' components
Currently 'Updateable' property value in SoftwareInventory schema is hardcoded. Added support to look through the updateable software associations objects and use it for 'Updateable' Redfish property in SoftwareInventory. Tested: - Checked 'Updateable' Property value for both programmable and non-programmable firmware inventory components and it works as expected. - Ran the Redfish validator and no new issues found. Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com> Change-Id: Ia24f942f3afe49674ec3628cac0356a5496ef337
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r--redfish-core/lib/update_service.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index ec9600ed23..048430d063 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -775,8 +775,10 @@ class SoftwareInventory : public Node
asyncResp->res.jsonValue["@odata.context"] =
"/redfish/v1/$metadata#SoftwareInventory.SoftwareInventory";
asyncResp->res.jsonValue["Name"] = "Software Inventory";
- asyncResp->res.jsonValue["Updateable"] = false;
asyncResp->res.jsonValue["Status"]["HealthRollup"] = "OK";
+
+ asyncResp->res.jsonValue["Updateable"] = false;
+ fw_util::getFwUpdateableStatus(asyncResp, swId);
},
"xyz.openbmc_project.ObjectMapper",
"/xyz/openbmc_project/object_mapper",