mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update __virtual__ function
This commit is contained in:
parent
9923176b68
commit
b8a6488688
1 changed files with 5 additions and 3 deletions
|
@ -183,9 +183,11 @@ def __virtual__():
|
|||
'''
|
||||
Only load on windows
|
||||
'''
|
||||
if __utils__['platform.is_windows']() and __utils__['path.which']('tzutil'):
|
||||
return __virtualname__
|
||||
return (False, "Module win_timezone: tzutil not found or is not on Windows client")
|
||||
if not __utils__['platform.is_windows']():
|
||||
return False, "Module win_timezone: Not on Windows client"
|
||||
if not __utils__['path.which']('tzutil'):
|
||||
return False, "Module win_timezone: tzutil not found"
|
||||
return __virtualname__
|
||||
|
||||
|
||||
def get_zone():
|
||||
|
|
Loading…
Add table
Reference in a new issue