Commit e2d7e2c8 authored by Mike Danese's avatar Mike Danese

make salt return non-zero exit code on failure

parent b34bf6a0
......@@ -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
......
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