Merge pull request #35965 from edgan/salt-ssh_highstate_retcode

Set the return code to 1 on salt-ssh highstate errors
This commit is contained in:
Thomas S Hatch 2016-09-01 10:21:37 -06:00 committed by GitHub
commit b48d7a7899

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(