diff options
author | Noah Brewer <noah.t.brewer@gmail.com> | 2021-04-27 23:24:25 +0300 |
---|---|---|
committer | Noah Brewer <noah.t.brewer@gmail.com> | 2021-04-29 21:30:41 +0300 |
commit | 15c27bf8ea1f7e2f8e07d1eaf386466091d69c17 (patch) | |
tree | 420019d1e8c843b2f2e16c28d79203b89e93d146 /redfish-core | |
parent | d4b6c66034de374cf0b14e05b0d20e87a8cefaf3 (diff) | |
download | bmcweb-15c27bf8ea1f7e2f8e07d1eaf386466091d69c17.tar.xz |
Redfish: Update Powering On Status State
If the HostState is TransitioningToRunning, Redfish response should
indicate Starting.
Tested:
- Changed HostState to TransitioningToRunning via busctl and
get redfish/v1/Systems/system and verified Status State as "Starting"
- Docker unit test passed
- Redfish validator passed
Signed-off-by: Noah Brewer <noah.t.brewer@gmail.com>
Change-Id: I69719fdbb32247fd31327be9ad39068e2898c2db
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/systems.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index 8d76722e45..13cbcf3910 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -654,7 +654,7 @@ inline void getHostState(const std::shared_ptr<bmcweb::AsyncResp>& aResp) "TransitioningToRunning") { aResp->res.jsonValue["PowerState"] = "PoweringOn"; - aResp->res.jsonValue["Status"]["State"] = "Disabled"; + aResp->res.jsonValue["Status"]["State"] = "Starting"; } else if (*s == "xyz.openbmc_project.State.Host.HostState." "TransitioningToOff") |