mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt.modules.darwin_sysctl
is now using __virtualname__
This commit is contained in:
parent
e7ef616ea6
commit
3382e9d17d
@ -10,12 +10,15 @@ import os
|
||||
import salt.utils
|
||||
from salt.exceptions import CommandExecutionError
|
||||
|
||||
# Define the module's virtual name
|
||||
__virtualname__ = 'sysctl'
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Only run on Darwin (OS X) systems
|
||||
'''
|
||||
return 'sysctl' if __grains__['os'] == 'MacOS' else False
|
||||
return __virtualname__ if __grains__['os'] == 'MacOS' else False
|
||||
|
||||
|
||||
def show():
|
||||
|
Loading…
Reference in New Issue
Block a user