summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2015-11-09 14:18:38 -0500
committerDan Radez <dradez@redhat.com>2015-11-09 14:18:38 -0500
commitc37b85a4d356212402277741a3cec793ccf47e68 (patch)
treed2dbace2cb593c485d70aba773c2aeb927ff4d82 /ci
parent02f299a5ffb749822234faf34ea5eddc1374724d (diff)
adding variable fix for clean up
Change-Id: I4e18bc0ddfb39a11c75070012743e6a68ecb70f6
Diffstat (limited to 'ci')
-rwxr-xr-xci/clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/clean.sh b/ci/clean.sh
index 7fad2ef1..acae615d 100755
--- a/ci/clean.sh
+++ b/ci/clean.sh
@@ -10,7 +10,7 @@ virsh destroy instack 2> /dev/null || echo -n ''
virsh undefine instack --remove-all-storage 2> /dev/null || echo -n ''
rm -f /var/lib/libvirt/images/instack.qcow2 2> /dev/null
-for i in $(seq 0 vm_index); do
+for i in $(seq 0 $vm_index); do
virsh destroy baremetalbrbm_$i 2> /dev/null || echo -n ''
virsh undefine baremetalbrbm_$i --remove-all-storage 2> /dev/null || echo -n ''
rm -f /var/lib/libvirt/images/baremetalbrbm_${i}.qcow2 2> /dev/null