mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 21:01:13 +00:00
[cloud] ec2_group: Allow rule source to be a security group in a peered VPC. (#28876)
This commit is contained in:
committed by
Ryan Brown
parent
28b9dc4bed
commit
cef40cb54a
@@ -385,7 +385,7 @@ def get_target_from_rule(module, client, rule, name, group, groups, vpc_id):
|
||||
group_id = group['GroupId']
|
||||
groups[group_id] = 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']
|
||||
else:
|
||||
if not rule.get('group_desc', '').strip():
|
||||
|
||||
Reference in New Issue
Block a user