diff options
author | Daniel G. Taylor <danielgtaylor@gmail.com> | 2014-08-04 14:16:02 -0700 |
---|---|---|
committer | Daniel G. Taylor <danielgtaylor@gmail.com> | 2014-08-04 14:16:02 -0700 |
commit | bc126afdb651e50a54ed4ac0f0ca9e6729044d54 (patch) | |
tree | 3716b0016f70173176ae8b611f1358e465a52afe /bin/kill_instance | |
parent | 2ffb00a6692f61fda1fe6f67b2253e2e1228eca5 (diff) | |
download | boto-bc126afdb651e50a54ed4ac0f0ca9e6729044d54.tar.gz |
Fix bin scripts fo Python 3.
Fixes S3 and EC2 scripts so that they are valid Python 3. Some things may
still not work, but the scripts are now capable of running under Python 3.
This mostly involved updates to `print` statements.
Diffstat (limited to 'bin/kill_instance')
-rwxr-xr-x | bin/kill_instance | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/kill_instance b/bin/kill_instance index 0c637413..6683bb83 100755 --- a/bin/kill_instance +++ b/bin/kill_instance @@ -13,7 +13,7 @@ def kill_instance(region, ids): # Connect the region ec2 = boto.connect_ec2(region=region) for instance_id in ids: - print "Stopping instance: %s" % instance_id + print("Stopping instance: %s" % instance_id) ec2.terminate_instances([instance_id]) @@ -29,7 +29,7 @@ if __name__ == "__main__": region = r break else: - print "Region %s not found." % options.region + print("Region %s not found." % options.region) sys.exit(1) kill_instance(region, args) |