mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23670 from rallytime/bp-23607
Backport #23607 to 2014.7
This commit is contained in:
commit
43f7025000
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue