mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
add missing _canonical_unit_name() in systemd provider status()
This commit is contained in:
parent
95daf9ce7e
commit
c3a5830729
@ -177,7 +177,7 @@ def status(name, sig=None):
|
||||
|
||||
salt '*' service.status <service name>
|
||||
'''
|
||||
cmd = 'systemctl is-active {0}'.format(name)
|
||||
cmd = 'systemctl is-active {0}'.format(_canonical_unit_name(name))
|
||||
return not __salt__['cmd.retcode'](cmd)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user