From 0ac4a82f3b319f5891710e6efd8888179caeb661 Mon Sep 17 00:00:00 2001 From: s-hertel Date: Fri, 8 Sep 2017 14:54:07 -0400 Subject: [PATCH] ec2_group: unnest variable assignment. Fixes #29113. --- lib/ansible/modules/cloud/amazon/ec2_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_group.py b/lib/ansible/modules/cloud/amazon/ec2_group.py index ccce6654f0..22041c59e3 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_group.py +++ b/lib/ansible/modules/cloud/amazon/ec2_group.py @@ -714,13 +714,13 @@ def main(): module.fail_json(msg="Unsupported state requested: %s" % state) # create a lookup for all existing rules on the group + ip_permission = [] if group: # Manage ingress rules groupRules = {} add_rules_to_lookup(group['IpPermissions'], group['GroupId'], 'in', groupRules) # Now, go through all provided rules and ensure they are there. if rules is not None: - ip_permission = [] for rule in rules: validate_rule(module, rule) group_id, ip, ipv6, target_group_created = get_target_from_rule(module, client, rule, name,