From 081b14b75aedf715500e652f4a9d47522e00fb01 Mon Sep 17 00:00:00 2001
From: Markos Chandras <mchandras@suse.de>
Date: Wed, 5 Apr 2017 17:55:31 +0100
Subject: jjb: xci: bifrost-cleanup-job: Fix undefined variable

Variable 'i' does not exist. It should be 'try_to_rm' instead.

Change-Id: Ic2aa5a1115715851379e2c7ba5c11699cb8e7407
Signed-off-by: Markos Chandras <mchandras@suse.de>
---
 jjb/xci/bifrost-cleanup-job.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'jjb/xci')

diff --git a/jjb/xci/bifrost-cleanup-job.yml b/jjb/xci/bifrost-cleanup-job.yml
index d4b2157da..d5a444d09 100644
--- a/jjb/xci/bifrost-cleanup-job.yml
+++ b/jjb/xci/bifrost-cleanup-job.yml
@@ -69,7 +69,7 @@
             while [[ $try_to_rm -lt 6 ]]; do
                 gsutil -m rm -r $BIFROST_GS_URL && _exitcode=$? && break
                 _exitcode=$?
-                echo "gsutil rm failed! Trying again... (attempt #$i)"
+                echo "gsutil rm failed! Trying again... (attempt #$try_to_rm)"
                 let try_to_rm += 1
                 # Give it some time...
                 sleep 10
-- 
cgit