salt.states.win_system is now using __virtualname__

This commit is contained in:
Pedro Algarvio 2013-10-17 14:26:47 +01:00
parent ba496b7c49
commit b44e701d69

View File

@ -25,16 +25,18 @@ import logging
# Import salt libs # Import salt libs
import salt.utils import salt.utils
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
# Define the module's virtual name
__virtualname__ = 'system'
def __virtual__(): def __virtual__():
''' '''
This only supports Windows This only supports Windows
''' '''
if salt.utils.is_windows() and 'system.get_computer_desc' in __salt__: if salt.utils.is_windows() and 'system.get_computer_desc' in __salt__:
return 'system' return __virtualname__
return False return False