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

Unified Diff: infra/bots/assets/asset_utils.py

Issue 2326663002: Fix issues in assets scripts (Closed)
Patch Set: Fix gsutil delete Created 4 years, 3 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 | infra/bots/assets/assets.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/assets/asset_utils.py
diff --git a/infra/bots/assets/asset_utils.py b/infra/bots/assets/asset_utils.py
index 8a1404fc56445936d69a4763c7626973adb0d7a7..ae58d4539fbcf30fe55246daf4d3b8de41adc034 100644
--- a/infra/bots/assets/asset_utils.py
+++ b/infra/bots/assets/asset_utils.py
@@ -198,11 +198,11 @@ class GSStore(object):
gs_path = GS_SUBDIR_TMPL % (self._gs_bucket, name)
attempt_delete = True
try:
- subprocess.check_call(['gsutil', 'ls', gs_path])
+ subprocess.check_call(self._gsutil + ['ls', gs_path])
except subprocess.CalledProcessError:
attempt_delete = False
if attempt_delete:
- subprocess.check_call(['gsutil', 'rm', '-rf', gs_path])
+ subprocess.check_call(self._gsutil + ['rm', '-rf', gs_path])
class MultiStore(object):
« no previous file with comments | « no previous file | infra/bots/assets/assets.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698