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 committed by rallytime
parent 1b456b55dc
commit 700f3fa57f

View file

@ -327,6 +327,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(