diff options
Diffstat (limited to 'ci/delete_stack.sh')
-rwxr-xr-x | ci/delete_stack.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/delete_stack.sh b/ci/delete_stack.sh new file mode 100755 index 0000000..a8a3f56 --- /dev/null +++ b/ci/delete_stack.sh @@ -0,0 +1,16 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2017 EMC and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +echo "Checking for an existing stack" +STACK_ID=`openstack stack list | grep StorPerfAgentGroup | awk '{print $2}'` +if [ ! -z $STACK_ID ] +then + openstack stack delete --yes --wait StorPerfAgentGroup +fi |