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

Unified Diff: third_party/gsutil/plugins/sso_auth.py

Issue 137853024: Disable retries when gsutil runs loas_check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/plugins/sso_auth.py
diff --git a/third_party/gsutil/plugins/sso_auth.py b/third_party/gsutil/plugins/sso_auth.py
index 71f0cc9c218bf26eb93fd010569350e924da65a0..cf956b89f57e0caafc906c3b077ded91afdf5270 100644
--- a/third_party/gsutil/plugins/sso_auth.py
+++ b/third_party/gsutil/plugins/sso_auth.py
@@ -45,7 +45,7 @@ class SSOAuth(AuthHandler):
def __init__(self, path, config, provider):
if provider.name == 'google' and self.has_prodaccess():
# If we don't have a loas token, then bypass this auth handler.
- if subprocess.call('loas_check',
+ if subprocess.call(['loas_check', '-loas_check_retry_attempts=0'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE):
raise NotReadyToAuthenticate()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698