salt.modules.darwin_sysctl is now using __virtualname__

This commit is contained in:
Pedro Algarvio 2013-10-17 12:40:43 +01:00
parent e7ef616ea6
commit 3382e9d17d

View File

@ -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():