mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Issue #20850 puppet run should return actual code
This commit is contained in:
parent
ade247443d
commit
c5ae09b5e7
@ -166,10 +166,8 @@ def run(*args, **kwargs):
|
|||||||
|
|
||||||
puppet.kwargs.update(salt.utils.clean_kwargs(**kwargs))
|
puppet.kwargs.update(salt.utils.clean_kwargs(**kwargs))
|
||||||
|
|
||||||
if __salt__['cmd.run_all'](repr(puppet), python_shell=False) in [0, 2]:
|
return __salt__['cmd.run_all'](repr(puppet), python_shell=False)
|
||||||
return 0
|
|
||||||
else:
|
|
||||||
return 1
|
|
||||||
|
|
||||||
|
|
||||||
def noop(*args, **kwargs):
|
def noop(*args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user