Do not abort on errors for oc get nodes 52/3652/1
authorYolanda Robla <yroblamo@redhat.com>
Thu, 30 Jul 2020 15:50:34 +0000 (17:50 +0200)
committerYolanda Robla <yroblamo@redhat.com>
Thu, 30 Jul 2020 15:52:40 +0000 (17:52 +0200)
We need to iterate across this call without
exiting the loop, so we need to disable
the exit flag

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I8f140be4cfab5159b039e9bbde272c9d8a990e0e

ci/kni_deploy_baremetal.sh

index 69ad8a5..9ff1a6f 100755 (executable)
@@ -41,11 +41,13 @@ pushd $HOME/go/src/gerrit.akraino.org/kni/installer
 sleep 20m
 
 NUM_READY=0
+set +e
 while [[ "$NUM_READY" -lt 1 ]]; do
     READY_NODES=$(KUBECONFIG=$HOME/.kni/$SITE_NAME/baremetal_automation/ocp/auth/kubeconfig $HOME/.kni/$SITE_NAME/requirements/oc get nodes || true)
     NUM_READY=$(echo $READY_NODES | grep " Ready " | wc -l )
     sleep 1m
 done
+set -e
 popd
 
 pushd $HOME/go/src/gerrit.akraino.org/kni/installer