control: Actions use list of groups set on base object
Remove the reference to a group given when running an action and instead
have each action iterate over the list of groups configured/set on the
base action object. The group configured/set on the base action object
is the only set of groups that the action should use based on its
configuration in an event.
Change-Id: Ia298d270e782ad729b5a29f9cdfe9b6c9ea4bc45
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/actions/count_state_target.hpp b/control/json/actions/count_state_target.hpp
index 8493844..41ad179 100644
--- a/control/json/actions/count_state_target.hpp
+++ b/control/json/actions/count_state_target.hpp
@@ -67,9 +67,8 @@
* state fall below the provided count.
*
* @param[in] zone - Zone to run the action on
- * @param[in] group - Group of dbus objects the action runs against
*/
- void run(Zone& zone, const Group& group) override;
+ void run(Zone& zone) override;
private:
/* Number of group members */