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>
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 @@
{
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