From 5d52a00f804ab82b0bd9113d76244635270e504f Mon Sep 17 00:00:00 2001 From: Oliver Bestwalter Date: Sun, 16 Feb 2014 14:02:02 +0100 Subject: [PATCH] use the value of __virtual__ instead of a string --- salt/modules/upstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/upstart.py b/salt/modules/upstart.py index 02be85d0dc..4bc5266725 100644 --- a/salt/modules/upstart.py +++ b/salt/modules/upstart.py @@ -66,7 +66,7 @@ def __virtual__(): if os.path.isfile(debian_initctl): initctl_version = salt.modules.cmdmod._run_quiet(debian_initctl + ' version') if 'upstart' in initctl_version: - return 'service' + return __virtualname__ return False