Properly match existing security group

If we don't care about `vpc_id` then neither should the code.
pull/6184/head
Patryk Zawadzki 11 years ago
parent 6fa898c511
commit da1efee21f

@ -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…
Cancel
Save