Merge pull request #44179 from mikedanese/saltsucks

Automatic merge from submit-queue

make salt return non-zero exit code on failure

Fixes https://github.com/kubernetes/kubernetes/issues/32478
This commit is contained in:
Kubernetes Submit Queue 2017-04-06 16:08:49 -07:00 committed by GitHub
commit af341e3fd1

View File

@ -796,7 +796,7 @@ function run-salt() {
echo "== Calling Salt =="
local rc=0
for i in {0..6}; do
salt-call --local state.highstate && rc=0 || rc=$?
salt-call --retcode-passthrough --local state.highstate && rc=0 || rc=$?
if [[ "${rc}" == 0 ]]; then
return 0
fi