Merge pull request #34509 from mikedanese/salt-retry

Automatic merge from submit-queue

retry salt-call in configure-vm.sh

Fixes #32478

cc @gmarek
This commit is contained in:
Kubernetes Submit Queue 2016-10-12 15:12:50 -07:00 committed by GitHub
commit d05925a1ed

View File

@ -1025,7 +1025,15 @@ function configure-salt() {
function run-salt() {
echo "== Calling Salt =="
salt-call --local state.highstate || true
local rc=0
for i in {0..6}; do
salt-call --local state.highstate && rc=0 || rc=$?
if [[ "${rc}" == 0 ]]; then
return 0
fi
done
echo "Salt failed to run repeatedly" >&2
return "${rc}"
}
function run-user-script() {