1
0
Fork 0
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:
Sloane Hertel 2017-08-31 15:27:05 -04:00 committed by Ryan Brown
parent 28b9dc4bed
commit cef40cb54a

View file

@ -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():