control: Provide pointer to manager object to events
To setup triggers on events, a pointer to the manager where service and
property states are stored is needed.
Change-Id: Ic6e2ca81c83f4cfacf01b9cb09b08c9f50f35cb6
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/manager.cpp b/control/json/manager.cpp
index ec15d18..a81940a 100644
--- a/control/json/manager.cpp
+++ b/control/json/manager.cpp
@@ -96,7 +96,7 @@
auto groups = getConfig<Group>(true, bus);
// Load any events configured
- _events = getConfig<Event>(true, bus, bus, groups, _zones);
+ _events = getConfig<Event>(true, bus, bus, this, groups, _zones);
bus.request_name(CONTROL_BUSNAME);
}