ec2_group: unnest variable assignment. Fixes #29113.

pull/25105/merge
s-hertel 7 years ago committed by Toshio Kuratomi
parent 6ae201d3b1
commit 0ac4a82f3b

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

Loading…
Cancel
Save