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

pull/4420/head
Sloane Hertel 2017-08-31 15:27:05 -04:00 committed by Ryan Brown
parent 28b9dc4bed
commit cef40cb54a
1 changed files with 1 additions and 1 deletions

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