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
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