Skip to content

Commit 090dca9

Browse files
Vladimir GrigorVladimir Grigor
Vladimir Grigor
authored and
Vladimir Grigor
committed
fixes as per review: removed printing of group_id and added comment
1 parent 730ec05 commit 090dca9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ec2/spark_ec2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,11 +1082,12 @@ def real_main():
10821082
time.sleep(30) # Yes, it does have to be this long :-(
10831083
for group in groups:
10841084
try:
1085+
# It is needed to use group_id to make it work with VPC
10851086
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
10871088
except boto.exception.EC2ResponseError:
10881089
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
10901091

10911092
# Unfortunately, group.revoke() returns True even if a rule was not
10921093
# deleted, so this needs to be rerun if something fails

0 commit comments

Comments
 (0)