From 3b438be5879938a06d0e7591c33e50136afaf956 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 31 May 2019 13:41:31 +0000 Subject: [PATCH] modifify clear-all script test to destroy models Change-Id: I0ebd41352df29c221f3b1c5dbd26299a8b4959f2 Signed-off-by: tierno --- osm_nbi/tests/clear-all.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/osm_nbi/tests/clear-all.sh b/osm_nbi/tests/clear-all.sh index 4bcd7f0..75599e5 100755 --- a/osm_nbi/tests/clear-all.sh +++ b/osm_nbi/tests/clear-all.sh @@ -104,6 +104,12 @@ fi if [ -n "$OSMNBI_CLEAN_VCA" ] then - juju destroy-model -y default - juju add-model default + for juju_model in `juju models | grep lxd | grep -v controller | grep -v default | awk '{print$1}'` + do + echo + echo juju destroy-model $juju_model + juju destroy-model -y $juju_model + done + # juju destroy-model -y default + # juju add-model default fi -- 2.25.1