clean the juju environment based on it was deployed. 99/18099/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 5 Aug 2016 19:36:02 +0000 (14:36 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 5 Aug 2016 19:36:38 +0000 (14:36 -0500)
Change-Id: I23b3bee91a430e6792b6a60760efecdd65808a42
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/clean.sh

index 105ef0c..aa2ca44 100755 (executable)
@@ -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