mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt.modules.win_shadow
is now using __virtualname__
This commit is contained in:
parent
bcacd574ef
commit
4d7243b4b0
@ -5,13 +5,16 @@ Manage the shadow file
|
|||||||
|
|
||||||
import salt.utils
|
import salt.utils
|
||||||
|
|
||||||
|
# Define the module's virtual name
|
||||||
|
__virtualname__ = 'shadow'
|
||||||
|
|
||||||
|
|
||||||
def __virtual__():
|
def __virtual__():
|
||||||
'''
|
'''
|
||||||
Only works on Windows systems
|
Only works on Windows systems
|
||||||
'''
|
'''
|
||||||
if salt.utils.is_windows():
|
if salt.utils.is_windows():
|
||||||
return 'shadow'
|
return __virtualname__
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user