Send initial transition value to base class
Fix to not redundantly call the systemd target when
initially discovering chassis state
Change-Id: I5673ab59581c9ddfb00df52af05184602654836d
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/host_state_manager.cpp b/host_state_manager.cpp
index 2d35886..497908a 100644
--- a/host_state_manager.cpp
+++ b/host_state_manager.cpp
@@ -72,16 +72,16 @@
log<level::INFO>("Initial Host State will be Running",
entry("CURRENT_HOST_STATE=%s",
convertForMessage(HostState::Running).c_str()));
- currentHostState(HostState::Running);
- requestedHostTransition(Transition::On);
+ server::Host::currentHostState(HostState::Running);
+ server::Host::requestedHostTransition(Transition::On);
}
else
{
log<level::INFO>("Initial Host State will be Off",
entry("CURRENT_HOST_STATE=%s",
convertForMessage(HostState::Off).c_str()));
- currentHostState(HostState::Off);
- requestedHostTransition(Transition::Off);
+ server::Host::currentHostState(HostState::Off);
+ server::Host::requestedHostTransition(Transition::Off);
}
// Set transition initially to Off