From 68ef54e7e8a311083ce9cee8e391a316879520d7 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 4 Jun 2014 13:52:44 -0500 Subject: [PATCH] Add additional params to get_target_from_rule method in ec2_group Fixes #7592 --- cloud/ec2_group | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/ec2_group b/cloud/ec2_group index 5e42e861f48..765bdda25a8 100644 --- a/cloud/ec2_group +++ b/cloud/ec2_group @@ -106,7 +106,7 @@ def addRulesToLookup(rules, prefix, dict): grant.group_id, grant.cidr_ip)] = rule -def get_target_from_rule(rule, name, groups): +def get_target_from_rule(module, rule, name, group, groups): """ Returns tuple of (group_id, ip) after validating rule params. @@ -245,7 +245,7 @@ def main(): # Now, go through all provided rules and ensure they are there. if rules: for rule in rules: - group_id, ip, target_group_created = get_target_from_rule(rule, name, groups) + group_id, ip, target_group_created = get_target_from_rule(module, rule, name, group, groups) if target_group_created: changed = True @@ -285,7 +285,7 @@ def main(): # Now, go through all provided rules and ensure they are there. if rules_egress: for rule in rules_egress: - group_id, ip, target_group_created = get_target_from_rule(rule, name, groups) + group_id, ip, target_group_created = get_target_from_rule(module, rule, name, group, groups) if target_group_created: changed = True