Fix for #23604. No error reporting. Exitcode !=0 are ok

This commit is contained in:
Azidburn 2015-05-12 20:09:18 +02:00 committed by rallytime
parent 0f006ac1d8
commit ed30dc4642

View file

@ -345,7 +345,8 @@ def status(name, sig=None):
'''
if _untracked_custom_unit_found(name) or _unit_file_changed(name):
systemctl_reload()
return not __salt__['cmd.retcode'](_systemctl_cmd('is-active', name))
return not __salt__['cmd.retcode'](_systemctl_cmd('is-active', name),
ignore_retcode=True)
def enable(name, **kwargs):