From a6f9392101c6adb9f4ad57d349c392b2396c2cb1 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Fri, 11 Oct 2019 10:40:32 -0700 Subject: Fix state property on firmware properties In the case of non-updatable firmware entities, the State variable was not getting populated due to a poorly handled error condition. This resolves it, and assumes non-updatable entities are just "Enabled" Tested: Need help here. I'm not able to reproduce the original issue on my system, so need someone else to test that this resolves it. Signed-off-by: Ed Tanous Change-Id: Ibd5db741cb8b0b2451a04fe14157dc1d3cbbcc03 --- redfish-core/include/utils/fw_utils.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'redfish-core/include') diff --git a/redfish-core/include/utils/fw_utils.hpp b/redfish-core/include/utils/fw_utils.hpp index c5cf1f80db..296c900da2 100644 --- a/redfish-core/include/utils/fw_utils.hpp +++ b/redfish-core/include/utils/fw_utils.hpp @@ -240,6 +240,7 @@ void getFwStatus(std::shared_ptr asyncResp, if (error_code) { // not all fwtypes are updateable, this is ok + asyncResp->res.jsonValue["Status"]["State"] = "Enabled"; return; } boost::container::flat_map::const_iterator -- cgit v1.2.3