diff options
author | s-hertel <shertel@redhat.com> | 2017-09-08 14:54:07 -0400 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-09 10:20:42 -0700 |
commit | dbcdf972529af4bcae8e77b6ede7fc253e3c220c (patch) | |
tree | 4438056ff41448a20c5ffcaa74095297b2280929 | |
parent | 972fbbba223663e6ce4485487741ad1899a64cfa (diff) | |
download | ansible-dbcdf972529af4bcae8e77b6ede7fc253e3c220c.tar.gz |
ec2_group: unnest variable assignment. Fixes #29113.
(cherry picked from commit 0ac4a82f3b319f5891710e6efd8888179caeb661)
-rw-r--r-- | lib/ansible/modules/cloud/amazon/ec2_group.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |