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

Unified Diff: third_party/boto/bin/glacier

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « third_party/boto/bin/elbadmin ('k') | third_party/boto/bin/lss3 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/bin/glacier
===================================================================
--- third_party/boto/bin/glacier (revision 33376)
+++ third_party/boto/bin/glacier (working copy)
@@ -84,10 +84,14 @@
def connect(region, debug_level=0, access_key=None, secret_key=None):
""" Connect to a specific region """
- return connect_to_region(region,
- aws_access_key_id=access_key,
- aws_secret_access_key=secret_key,
- debug=debug_level)
+ layer2 = connect_to_region(region,
+ aws_access_key_id=access_key,
+ aws_secret_access_key=secret_key,
+ debug=debug_level)
+ if layer2 is None:
+ print 'Invalid region (%s)' % region
+ sys.exit(1)
+ return layer2
def list_vaults(region, access_key=None, secret_key=None):
« no previous file with comments | « third_party/boto/bin/elbadmin ('k') | third_party/boto/bin/lss3 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698