mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Merge pull request #6184 from patrys/patch-1
Properly match existing security group
This commit is contained in:
commit
404765162d
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ def main():
|
||||||
groups[curGroup.id] = curGroup
|
groups[curGroup.id] = curGroup
|
||||||
groups[curGroup.name] = curGroup
|
groups[curGroup.name] = curGroup
|
||||||
|
|
||||||
if curGroup.name == name and curGroup.vpc_id == vpc_id:
|
if curGroup.name == name and (vpc_id is None or curGroup.vpc_id == vpc_id):
|
||||||
group = curGroup
|
group = curGroup
|
||||||
|
|
||||||
# Ensure requested group is absent
|
# Ensure requested group is absent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue