|
|
@ -57,7 +57,7 @@ def delete_aws_eips(get_func, attr, opts):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
eip_log = open(opts.eip_log, 'r').read().splitlines()
|
|
|
|
eip_log = open(opts.eip_log, 'r').read().splitlines()
|
|
|
|
except IOError:
|
|
|
|
except IOError:
|
|
|
|
print opts.eip_log, 'not found.'
|
|
|
|
print('%s not found.' % opts.eip_log)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
for item in get_func():
|
|
|
|
for item in get_func():
|
|
|
@ -176,4 +176,4 @@ if __name__ == '__main__':
|
|
|
|
delete_aws_instances(aws.get_all_instances(filters=filters), opts)
|
|
|
|
delete_aws_instances(aws.get_all_instances(filters=filters), opts)
|
|
|
|
|
|
|
|
|
|
|
|
except KeyboardInterrupt as e:
|
|
|
|
except KeyboardInterrupt as e:
|
|
|
|
print "\nExiting on user command."
|
|
|
|
print("\nExiting on user command.")
|
|
|
|