Index: scripts/slave/recipe_modules/gsutil/example.py |
diff --git a/scripts/slave/recipe_modules/gsutil/example.py b/scripts/slave/recipe_modules/gsutil/example.py |
index d80a8bd3de5da4490280480eca40cd6b4cf48205..ffcf331b769f98e2c52737677a236b812d22c697 100644 |
--- a/scripts/slave/recipe_modules/gsutil/example.py |
+++ b/scripts/slave/recipe_modules/gsutil/example.py |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
DEPS = [ |
+ 'depot_tools/infra_paths', |
'gsutil', |
'recipe_engine/path', |
] |
@@ -10,7 +11,7 @@ DEPS = [ |
def RunSteps(api): |
"""Move things around in a loop!""" |
- local_file = api.path['slave_build'].join('boom') |
+ local_file = api.infra_paths['slave_build'].join('boom') |
bucket = 'chromium-recipe-test' |
cloud_file = 'some/random/path/to/boom' |
api.gsutil.upload(local_file, bucket, cloud_file, |
@@ -45,7 +46,7 @@ def RunSteps(api): |
pass |
new_cloud_file = 'staging/to/boom' |
- new_local_file = api.path['slave_build'].join('erang') |
+ new_local_file = api.infra_paths['slave_build'].join('erang') |
api.gsutil.download(bucket, new_cloud_file, new_local_file) |
private_key_file = 'path/to/key' |