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() { ...@@ -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