mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +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
|
||||
|
||||
# Define the module's virtual name
|
||||
__virtualname__ = 'shadow'
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Only works on Windows systems
|
||||
'''
|
||||
if salt.utils.is_windows():
|
||||
return 'shadow'
|
||||
return __virtualname__
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user