Skip to content

Commit

Permalink
ec2_group: unnest variable assignment. Fixes ansible#29113.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hertel authored and abadger committed Sep 9, 2017
1 parent 6ae201d commit 0ac4a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/ec2_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0ac4a82

Please sign in to comment.