diff options
author | Josh D. King <jdking@us.ibm.com> | 2017-04-27 12:40:22 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-05-18 18:52:26 +0000 |
commit | 29d025dadc07173e19f91ad0e47f4c4f8aa87737 (patch) | |
tree | 802e0665c8f11b3687ff8537f8431fda6f3e1bc1 | |
parent | d32f81814d25cdcd00b46c45b13042267b0c413d (diff) | |
download | phosphor-state-manager-29d025dadc07173e19f91ad0e47f4c4f8aa87737.tar.gz phosphor-state-manager-29d025dadc07173e19f91ad0e47f4c4f8aa87737.zip |
Check Quiesce State before issuing auto reboot
Quiesce state was going into a reboot when
we issued a power off command. Added logic
to check the state before autoReboot occurs.
Resolves openbmc/openbmc#1475
Change-Id: I5cd9375a1c68b89e0b777ff436f90e553f2e6b32
Signed-off-by: Josh D. King <jdking@us.ibm.com>
-rw-r--r-- | host_state_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host_state_manager.cpp b/host_state_manager.cpp index 5930d8a..fd89cf6 100644 --- a/host_state_manager.cpp +++ b/host_state_manager.cpp @@ -324,7 +324,8 @@ void Host::sysStateChange(sdbusplus::message::message& msg) this->currentHostState(server::Host::HostState::Running); } else if((newStateUnit == HOST_STATE_QUIESCE_TGT) && - (newStateResult == "done")) + (newStateResult == "done") && + (stateActive(HOST_STATE_QUIESCE_TGT))) { if (Host::isAutoReboot()) { |