From edef244e4019696c2e31474eb4ba4ba23b712709 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Fri, 20 Jan 2012 12:45:32 -0800 Subject: [PATCH] Fix test that checks whether insances from previous runs need to be removed * Fixes bug 919389 Change-Id: I11e0c46426e627448562802e56fca186a5a365ef --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index cf121af09b..5e05956fac 100755 --- a/stack.sh +++ b/stack.sh @@ -930,7 +930,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then # Destroy old instances instances=`virsh list --all | grep $INSTANCE_NAME_PREFIX | sed "s/.*\($INSTANCE_NAME_PREFIX[0-9a-fA-F]*\).*/\1/g"` - if [ ! $instances = "" ]; then + if [ ! "$instances" = "" ]; then echo $instances | xargs -n1 virsh destroy || true echo $instances | xargs -n1 virsh undefine || true fi