add missing _canonical_unit_name() in systemd provider status()

This commit is contained in:
Tomoyuki Kano 2012-11-01 10:23:14 +09:00
parent 95daf9ce7e
commit c3a5830729

View File

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