[cloud] ec2_group: Allow rule source to be a security group in a peered VPC. (#28876)

pull/28941/head
Sloane Hertel 7 years ago 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():

Loading…
Cancel
Save