mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Making salt-ssh pass proper return codes for jinja rendering errors (#34342)
This commit is contained in:
parent
f6bd1ad47e
commit
11dc0203b0
2 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,7 @@ def main(argv): # pylint: disable=W0613
|
|||
salt_argv = [
|
||||
sys.executable,
|
||||
salt_call_path,
|
||||
'--retcode-passthrough',
|
||||
'--local',
|
||||
'--metadata',
|
||||
'--out', 'json',
|
||||
|
|
|
@ -1380,6 +1380,7 @@ def pkg(pkg_path, pkg_sum, hash_type, test=None, **kwargs):
|
|||
shutil.rmtree(root)
|
||||
except (IOError, OSError):
|
||||
pass
|
||||
_set_retcode(ret)
|
||||
return ret
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue