From 46d324c59c8791d0e54cafc00b3e2ccaf9adf269 Mon Sep 17 00:00:00 2001 From: narindergupta Date: Thu, 17 Aug 2017 14:23:32 -0500 Subject: delete pod if exist during maas deployment. Change-Id: Id045671934696ff96d46079c0f1a8e0ea2a172c2 Signed-off-by: Narinder Gupta --- ci/03-maasdeploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ci/03-maasdeploy.sh') diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh index e741cd87..788454c9 100755 --- a/ci/03-maasdeploy.sh +++ b/ci/03-maasdeploy.sh @@ -384,7 +384,8 @@ addnodes(){ do maas $PROFILE machine delete $m done - maas $PROFILE pod delete 1 || true + podno=$(maas $PROFILE pods read | jq -r ".[]".id) + maas $PROFILE pod delete $podno || true # if we have a virshurl configuration we use it, else we use local VIRSHURL=$(cat labconfig.json | jq -r '.opnfv.virshurl') -- cgit 1.2.3-korg