control: Provide zones to the events
The event actions need the zone(s) to run the event's configured
action(s) against. The YAML based configs did not support configuring
which zone(s) to run any particular action within an event against.
A follow up commit will package the zone(s) an action should run against
and provide that directly to the action, eliminating the need to store
that for the trigger callbacks.
Change-Id: I1d0de02a61c9a906f932487231b46add92e8b1d5
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/manager.cpp b/control/json/manager.cpp
index 64921fc..b85bd32 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);
+ _events = getConfig<Event>(true, bus, bus, groups, _zones);
bus.request_name(CONTROL_BUSNAME);
}