From a56fce4f323d8a6a232f0205e03c6f601b7eefb5 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Fri, 5 Aug 2016 14:36:02 -0500 Subject: [PATCH] clean the juju environment based on it was deployed. Change-Id: I23b3bee91a430e6792b6a60760efecdd65808a42 Signed-off-by: Narinder Gupta --- ci/clean.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/clean.sh b/ci/clean.sh index 105ef0cb..aa2ca440 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -9,7 +9,8 @@ if [ -d $HOME/.juju/environments ]; then echo " environment is not bootstrapped ..." else echo " environment is bootstrapped ..." - juju destroy-environment demo-maas -y + jujuenv=`juju status | grep environment | cut -d ":" -f 2` + juju destroy-environment $jujuenv -y fi rm -rf precise rm -rf trusty -- 2.16.6