Making salt-ssh pass proper return codes for jinja rendering errors (#34342)

This commit is contained in:
Nicole Thomas 2016-06-28 16:34:56 -04:00 committed by GitHub
parent f6bd1ad47e
commit 11dc0203b0
2 changed files with 2 additions and 0 deletions

View file

@ -200,6 +200,7 @@ def main(argv): # pylint: disable=W0613
salt_argv = [
sys.executable,
salt_call_path,
'--retcode-passthrough',
'--local',
'--metadata',
'--out', 'json',

View file

@ -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