Minor tweaks to stack deletion commands 39/20239/1
authorGary Wu <gary.i.wu@huawei.com>
Mon, 23 Oct 2017 20:19:45 +0000 (13:19 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Mon, 23 Oct 2017 20:19:45 +0000 (13:19 -0700)
Change-Id: I5e5fa540bfa157207b79921a97595eed7de1045c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
test/ete/scripts/deploy-onap.sh

index 69c6dfb..2106175 100755 (executable)
@@ -48,10 +48,8 @@ fi
 
 # Delete all existing stacks
 STACKS=$(openstack stack list -c "Stack Name" -f value)
-for stack in "${STACKS[@]}"; do
-    echo "Deleting Old Stack ${stack}"
-    openstack stack delete -y $stack
-done
+echo "Deleting Stacks ${STACKS}"
+openstack stack delete -y $STACKS
 
 STACK="ete-$(uuidgen | cut -c-8)"
 echo "New Stack Name: ${STACK}"