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

Unified Diff: recipe_modules/bot_update/api.py

Issue 1915463002: depot_tools: add infra_paths recipe module for infra-specific paths (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 8 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
Index: recipe_modules/bot_update/api.py
diff --git a/recipe_modules/bot_update/api.py b/recipe_modules/bot_update/api.py
index 31a27335c82c2d67528b6906cce51b748dfd6c98..57b2e4a84bf8218a18b9ad752ee4e0ae6497cdd6 100644
--- a/recipe_modules/bot_update/api.py
+++ b/recipe_modules/bot_update/api.py
@@ -121,9 +121,9 @@ class BotUpdateApi(recipe_api.RecipeApi):
# Point to the oauth2 auth files if specified.
# These paths are where the bots put their credential files.
if patch_oauth2:
- email_file = self.m.path['build'].join(
+ email_file = self.m.infra_paths['build'].join(
'site_config', '.rietveld_client_email')
- key_file = self.m.path['build'].join(
+ key_file = self.m.infra_paths['build'].join(
'site_config', '.rietveld_secret_key')
else:
email_file = key_file = None
@@ -272,7 +272,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
# first solution.
if step_result.json.output['did_run']:
co_root = step_result.json.output['root']
- cwd = kwargs.get('cwd', self.m.path['slave_build'])
+ cwd = kwargs.get('cwd', self.m.infra_paths['slave_build'])
if 'checkout' not in self.m.path:
self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep))

Powered by Google App Engine
This is Rietveld 408576698