summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2016-12-13 13:23:53 -0600
committerAndrew Geissler <andrewg@us.ibm.com>2017-01-09 11:57:59 -0600
commit359aaafc61b734da78d6d95df531c7ce1e70b60e (patch)
tree4344f1b833d4fff54f3fac7901bd853b20b35b87
parent06dbc5b707a32e019ce29a8af58147d3622efe55 (diff)
downloadphosphor-state-manager-359aaafc61b734da78d6d95df531c7ce1e70b60e.tar.gz
phosphor-state-manager-359aaafc61b734da78d6d95df531c7ce1e70b60e.zip
Default requestedHostTransition to value on startup
The persistence and enforcement of the requested state will come in a different chain of commits. For now, we just want this to match up with what we read from the system target for our current state. Change-Id: Iaeb60e074c3bfc6046bf00b72f512cab1012342c Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
-rw-r--r--host_state_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host_state_manager.cpp b/host_state_manager.cpp
index c532b9d..1b09b16 100644
--- a/host_state_manager.cpp
+++ b/host_state_manager.cpp
@@ -55,11 +55,13 @@ void Host::determineInitialState()
{
std::cout << "HOST is BOOTED " << sysState << std::endl;
currentHostState(HostState::Running);
+ requestedHostTransition(Transition::On);
}
else
{
std::cout << "HOST is not BOOTED " << sysState << std::endl;
currentHostState(HostState::Off);
+ requestedHostTransition(Transition::Off);
}
// Set transition initially to Off
OpenPOWER on IntegriCloud