Assert LEDs for existing callouts while service starts
Resolves openbmc/openbmc#1631
Change-Id: I1639c84cbb180dfe7f6494b5e80ca45514a3e730
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/fault-monitor/fru-fault-monitor.hpp b/fault-monitor/fru-fault-monitor.hpp
index b686560..897ef05 100644
--- a/fault-monitor/fru-fault-monitor.hpp
+++ b/fault-monitor/fru-fault-monitor.hpp
@@ -53,7 +53,7 @@
std::bind(std::mem_fn(&Add::created),
this, std::placeholders::_1))
{
- //Do nothing
+ processExistingCallouts(bus);
}
private:
@@ -66,6 +66,11 @@
* @param[in] msg - Data associated with subscribed signal
*/
void created(sdbusplus::message::message& msg);
+
+ /** @brief This function process all callouts at application start
+ * @param[in] bus - The Dbus bus object
+ */
+ void processExistingCallouts(sdbusplus::bus::bus& bus);
};
/** @class Remove