mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Properly match existing security group
If we don't care about `vpc_id` then neither should the code.
This commit is contained in:
parent
6fa898c511
commit
da1efee21f
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ def main():
|
|||
groups[curGroup.id] = 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
|
||||
|
||||
# Ensure requested group is absent
|
||||
|
|
Loading…
Reference in a new issue