Set the return code to 1 on salt-ssh highstate errors

This commit is contained in:
Nathan Grennan 2016-08-31 14:23:33 -07:00
parent 351a033f7d
commit c0ab563677

View File

@ -318,6 +318,7 @@ def highstate(test=None, **kwargs):
# Check for errors
for chunk in chunks:
if not isinstance(chunk, dict):
__context__['retcode'] = 1
return chunks
# Create the tar containing the state pkg and relevant files.
trans_tar = salt.client.ssh.state.prep_trans_tar(