mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Set the return code to 1 on salt-ssh highstate errors
This commit is contained in:
parent
351a033f7d
commit
c0ab563677
@ -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