mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +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 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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user