mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[cloud] Fix ec2_group when security group lacks a VPC (#31526)
This commit is contained in:
parent
6fee6f71f7
commit
89d09bae21
1 changed files with 1 additions and 1 deletions
|
@ -657,7 +657,7 @@ def main():
|
||||||
|
|
||||||
if group_id and sg['GroupId'] == group_id:
|
if group_id and sg['GroupId'] == group_id:
|
||||||
group = sg
|
group = sg
|
||||||
elif groupName == name and (vpc_id is None or sg['VpcId'] == vpc_id):
|
elif groupName == name and (vpc_id is None or sg.get('VpcId') == vpc_id):
|
||||||
group = sg
|
group = sg
|
||||||
|
|
||||||
# Ensure requested group is absent
|
# Ensure requested group is absent
|
||||||
|
|
Loading…
Reference in a new issue