Merge pull request #23670 from rallytime/bp-23607

Backport #23607 to 2014.7
This commit is contained in:
Justin Findlay 2015-05-13 12:27:17 -06:00
commit 43f7025000

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):