mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
salt.states.win_system
is now using __virtualname__
This commit is contained in:
parent
ba496b7c49
commit
b44e701d69
@ -25,16 +25,18 @@ import logging
|
||||
# Import salt libs
|
||||
import salt.utils
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# Define the module's virtual name
|
||||
__virtualname__ = 'system'
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
This only supports Windows
|
||||
'''
|
||||
if salt.utils.is_windows() and 'system.get_computer_desc' in __salt__:
|
||||
return 'system'
|
||||
return __virtualname__
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user