Skip signal emission during progress object initialization
The object should not send signal when it is initialized
from the archive file. This is still a part of the
creation of the object.
This cause a bug that there is emit of a signal when actually the
host did not had any change.
Change-Id: I86c5b8d582f38cedeb00fc028d91d6d72728f78b
Signed-off-by: Adi Fogel <afogel@nvidia.com>
diff --git a/host_state_manager.hpp b/host_state_manager.hpp
index 043aef6..6bf4f94 100644
--- a/host_state_manager.hpp
+++ b/host_state_manager.hpp
@@ -291,14 +291,15 @@
// When restoring, set the requested state with persistent value
// but don't call the override which would execute it
sdbusplus::server::xyz::openbmc_project::state::Host::
- requestedHostTransition(reqTran);
+ requestedHostTransition(reqTran, true);
sdbusplus::server::xyz::openbmc_project::state::boot::Progress::
- bootProgress(Host::convertProgressStagesFromString(bootProgress));
+ bootProgress(Host::convertProgressStagesFromString(bootProgress),
+ true);
sdbusplus::server::xyz::openbmc_project::state::operating_system::
Status::operatingSystemState(
- Host::convertOSStatusFromString(osState));
+ Host::convertOSStatusFromString(osState), true);
sdbusplus::server::xyz::openbmc_project::control::boot::RebootAttempts::
- retryAttempts(retryAttempts);
+ retryAttempts(retryAttempts, true);
}
/** @brief Serialize and persist requested host state