From: Narinder Gupta Date: Fri, 5 Aug 2016 19:36:02 +0000 (-0500) Subject: clean the juju environment based on it was deployed. X-Git-Tag: colorado.1.0~45 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F18099%2F1;p=joid.git clean the juju environment based on it was deployed. Change-Id: I23b3bee91a430e6792b6a60760efecdd65808a42 Signed-off-by: Narinder Gupta --- 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