From 604b61f0fb9f9db60e7a05aed9ec6dadcb7570bd Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Wed, 15 Apr 2020 07:13:42 +0000
Subject: [PATCH] nectar bashing

Former-commit-id: 36678cf8876a1e40159c5df00ea5e7ec79f444dd
---
 CICD/heat/heatcicdwrapper.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CICD/heat/heatcicdwrapper.sh b/CICD/heat/heatcicdwrapper.sh
index e6554d66..ff8aa04e 100644
--- a/CICD/heat/heatcicdwrapper.sh
+++ b/CICD/heat/heatcicdwrapper.sh
@@ -77,6 +77,8 @@ case "$1" in
                    echo "I cannot update a stack which does not exist"
                    exit -45
             fi
+            openstack stack check --wait $STACKNAME
+            sleep 2
             openstack stack update --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml $STACKNAME
             ret=$?
             exit $ret
@@ -84,6 +86,8 @@ case "$1" in
         create_or_update)
             if  check_stack_exists
                then
+               openstack stack check --wait $STACKNAME
+               sleep 2
                openstack stack update --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml $STACKNAME
                ret=$?
                exit $ret
-- 
GitLab