mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
commit
b48d7a7899
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user