mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix for #23604. No error reporting. Exitcode !=0 are ok
This commit is contained in:
parent
0f006ac1d8
commit
ed30dc4642
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