salt.modules.win_shadow is now using __virtualname__

This commit is contained in:
Pedro Algarvio 2013-10-17 13:58:42 +01:00
parent bcacd574ef
commit 4d7243b4b0

View File

@ -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