1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ec2_group: unnest variable assignment. Fixes #29113.

This commit is contained in:
s-hertel 2017-09-08 14:54:07 -04:00 committed by Toshio Kuratomi
parent 6ae201d3b1
commit 0ac4a82f3b

View file

@ -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,