Use interfaces-removed for association removes
The mapper will no longer emit properties-changed signals
when the last endpoints property is removed from the fault
association object. It will only emit an interfaces-removed
signal in that case, so change the code to subscribe to the
interfaces-removed signal instead.
Change-Id: I225376e550d21b82473015324cd9a261e16fe6db
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/fault-monitor/fru-fault-monitor.hpp b/fault-monitor/fru-fault-monitor.hpp
index 897ef05..77d3be2 100644
--- a/fault-monitor/fru-fault-monitor.hpp
+++ b/fault-monitor/fru-fault-monitor.hpp
@@ -124,10 +124,9 @@
namespace MatchRules = sdbusplus::bus::match::rules;
std::string matchStmt =
- MatchRules::type::signal() +
- MatchRules::interface("org.freedesktop.DBus.Properties") +
- MatchRules::member("PropertiesChanged") +
- MatchRules::path(path + "/" + CALLOUT_REV_ASSOCIATION);
+ MatchRules::interfacesRemoved() +
+ MatchRules::argNpath(
+ 0, path + "/" + CALLOUT_REV_ASSOCIATION);
return matchStmt;
}