summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-08-05 14:36:02 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-05 14:36:38 -0500
commita56fce4f323d8a6a232f0205e03c6f601b7eefb5 (patch)
tree972c77895752760c6e84d9854757b02fc0b2f710 /ci
parenteae61f596efd44095dbb78db6e7dd45d249cf77e (diff)
clean the juju environment based on it was deployed.
Change-Id: I23b3bee91a430e6792b6a60760efecdd65808a42 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/clean.sh3
1 files changed, 2 insertions, 1 deletions
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