mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set the return code to 1 on salt-ssh highstate errors
This commit is contained in:
parent
1b456b55dc
commit
700f3fa57f
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue