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:
parent
6ae201d3b1
commit
0ac4a82f3b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue