From c3a5830729d4d776a39d30396b9f7868f0ae2db9 Mon Sep 17 00:00:00 2001 From: Tomoyuki Kano Date: Thu, 1 Nov 2012 10:23:14 +0900 Subject: [PATCH] add missing _canonical_unit_name() in systemd provider status() --- salt/modules/systemd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/systemd.py b/salt/modules/systemd.py index bee473fbeb..92b84ed392 100644 --- a/salt/modules/systemd.py +++ b/salt/modules/systemd.py @@ -177,7 +177,7 @@ def status(name, sig=None): salt '*' service.status ''' - cmd = 'systemctl is-active {0}'.format(name) + cmd = 'systemctl is-active {0}'.format(_canonical_unit_name(name)) return not __salt__['cmd.retcode'](cmd)