From 39bb4b174dc7d17a61a71606ec61d87eed2ec094 Mon Sep 17 00:00:00 2001 From: "tandrii@google.com" Date: Wed, 17 Jun 2015 15:53:24 +0000 Subject: [PATCH] Make Rietveld RPC work with service accounts for public instances. R=pgervais@chromium.org, hinoka@chromium.org BUG=489569 Review URL: https://codereview.chromium.org/1145313002. git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295723 0039d316-1c4b-4281-b951-d872f2087c98 --- rietveld.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rietveld.py b/rietveld.py index 0114cfe0c..eddf77eef 100644 --- a/rietveld.py +++ b/rietveld.py @@ -564,7 +564,9 @@ class JwtOAuth2Rietveld(Rietveld): private_key_password = 'notasecret' self.url = url.rstrip('/') - bot_url = self.url + '/bots' + bot_url = self.url + if self.url.endswith('googleplex.com'): + bot_url = self.url + '/bots' with open(client_private_key_file, 'rb') as f: client_private_key = f.read()