Commit cf824ae5 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Merge pull request #7164 from fgrzadkowski/fix_wait_minion

Wait for minion to start even if gcloud command fails.
parents 162b0db7 780db9d7
......@@ -198,9 +198,9 @@ function wait-for-minions-to-run {
echo -e -n "${color_yellow}Waiting for minions to run. "
echo -e "${running_minions} out of ${NUM_MINIONS} running. Retrying.${color_norm}"
sleep 5
running_minions=$(gcloud preview --project "${PROJECT}" instance-groups \
running_minions=$((gcloud preview --project "${PROJECT}" instance-groups \
--zone "${ZONE}" instances --group "${NODE_INSTANCE_PREFIX}-group" list \
--running | wc -l | xargs)
--running || true) | wc -l | xargs)
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment