make salt return non-zero exit code on failure

This commit is contained in:
Mike Danese 2017-04-06 13:56:23 -07:00
parent b34bf6a0ab
commit e2d7e2c866

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