From 8cfa89bfd784ed41d3f4979e2c8bab2e7bd42d90 Mon Sep 17 00:00:00 2001 From: "dtu@chromium.org" Date: Fri, 17 Jan 2014 00:55:48 +0000 Subject: [PATCH] Disable retries when gsutil runs loas_check. By default, if loasd is not running, loas_check retries twice, waiting 5 seconds between retries. This is in case loasd is restarting due to reinstallation. Unfortunately, if the user has never run prodaccess, this check takes an extra 10 seconds. So, just disable the retries. BUG= Review URL: https://codereview.chromium.org/137853024 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@245399 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/gsutil/plugins/sso_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/gsutil/plugins/sso_auth.py b/third_party/gsutil/plugins/sso_auth.py index 71f0cc9c2..cf956b89f 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()