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
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 8d76722..13cbcf3 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -654,7 +654,7 @@
"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")