Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Unified Diff: tools/telemetry/third_party/gsutil/third_party/boto/bin/kill_instance

Issue 1260493004: Revert "Add gsutil 4.13 to telemetry/third_party" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/gsutil/third_party/boto/bin/kill_instance
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/bin/kill_instance b/tools/telemetry/third_party/gsutil/third_party/boto/bin/kill_instance
deleted file mode 100644
index 6683bb838f1dd6ea495dababc7d63b443a0b3769..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/gsutil/third_party/boto/bin/kill_instance
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-from optparse import OptionParser
-
-import boto
-from boto.ec2 import regions
-
-
-
-def kill_instance(region, ids):
- """Kill an instances given it's instance IDs"""
- # Connect the region
- ec2 = boto.connect_ec2(region=region)
- for instance_id in ids:
- print("Stopping instance: %s" % instance_id)
- ec2.terminate_instances([instance_id])
-
-
-if __name__ == "__main__":
- parser = OptionParser(usage="kill_instance [-r] id [id ...]")
- parser.add_option("-r", "--region", help="Region (default us-east-1)", dest="region", default="us-east-1")
- (options, args) = parser.parse_args()
- if not args:
- parser.print_help()
- sys.exit(1)
- for r in regions():
- if r.name == options.region:
- region = r
- break
- else:
- print("Region %s not found." % options.region)
- sys.exit(1)
-
- kill_instance(region, args)

Powered by Google App Engine
This is Rietveld 408576698