mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #10487 from obestwalter/develop
use the value of __virtualname__ instead of a string
This commit is contained in:
commit
7d6fcf8ff5
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user