Commit 40476516 by Michael DeHaan

Merge pull request #6184 from patrys/patch-1

Properly match existing security group
parents c2307b93 da1efee2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment