Merge pull request #10487 from obestwalter/develop

use the value of __virtualname__ instead of a string
This commit is contained in:
Joseph Hall 2014-02-16 06:32:16 -07:00
commit 7d6fcf8ff5

View File

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