Skip to content

Commit

Permalink
Issue saltstack#20850 puppet run should return actual code
Browse files Browse the repository at this point in the history
  • Loading branch information
br0ch0n committed Apr 7, 2015
1 parent ade2474 commit c5ae09b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions salt/modules/puppet.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ def run(*args, **kwargs):

puppet.kwargs.update(salt.utils.clean_kwargs(**kwargs))

if __salt__['cmd.run_all'](repr(puppet), python_shell=False) in [0, 2]:
return 0
else:
return 1
return __salt__['cmd.run_all'](repr(puppet), python_shell=False)



def noop(*args, **kwargs):
Expand Down

0 comments on commit c5ae09b

Please sign in to comment.