File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1082,11 +1082,12 @@ def real_main():
1082
1082
time .sleep (30 ) # Yes, it does have to be this long :-(
1083
1083
for group in groups :
1084
1084
try :
1085
+ # It is needed to use group_id to make it work with VPC
1085
1086
conn .delete_security_group (group_id = group .id )
1086
- print "Deleted security group %s, id %s " % ( group .name , group . id )
1087
+ print "Deleted security group %s" % group .name
1087
1088
except boto .exception .EC2ResponseError :
1088
1089
success = False
1089
- print "Failed to delete security group %s, id %s " % ( group .name , group . id )
1090
+ print "Failed to delete security group %s" % group .name
1090
1091
1091
1092
# Unfortunately, group.revoke() returns True even if a rule was not
1092
1093
# deleted, so this needs to be rerun if something fails
You can’t perform that action at this time.
0 commit comments