mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[cloud] ec2_group: Allow rule source to be a security group in a peered VPC. (#28876)
This commit is contained in:
parent
28b9dc4bed
commit
cef40cb54a
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ def get_target_from_rule(module, client, rule, name, group, groups, vpc_id):
|
||||||
group_id = group['GroupId']
|
group_id = group['GroupId']
|
||||||
groups[group_id] = group
|
groups[group_id] = group
|
||||||
groups[group_name] = group
|
groups[group_name] = group
|
||||||
elif group_name in groups and (vpc_id is None or groups[group_name]['VpcId'] == vpc_id):
|
elif group_name in groups:
|
||||||
group_id = groups[group_name]['GroupId']
|
group_id = groups[group_name]['GroupId']
|
||||||
else:
|
else:
|
||||||
if not rule.get('group_desc', '').strip():
|
if not rule.get('group_desc', '').strip():
|
||||||
|
|
Loading…
Reference in a new issue