summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
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