Commit af341e3f authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents aa1bd2b3 e2d7e2c8
...@@ -796,7 +796,7 @@ function run-salt() { ...@@ -796,7 +796,7 @@ function run-salt() {
echo "== Calling Salt ==" echo "== Calling Salt =="
local rc=0 local rc=0
for i in {0..6}; do 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 if [[ "${rc}" == 0 ]]; then
return 0 return 0
fi fi
......
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