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

Unified Diff: rietveld.py

Issue 1145313002: Make Rietveld RPC work with service accounts for public instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: follow_redirects=False not required! Created 5 years, 7 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: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index 0114cfe0ccee6bf9922c03f9c8575191484ef06b..eddf77eef50a7e85b2e38d7783e30f18b7798e25 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()
« 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