mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Adds chocolatey warning message
This commit is contained in:
parent
f5e24872f1
commit
ec8341977e
@ -36,9 +36,9 @@ def __virtual__():
|
||||
salt-minion running as SYSTEM.
|
||||
'''
|
||||
if not salt.utils.is_windows():
|
||||
return False
|
||||
return (False, 'Cannot load module chocolatey: Chocolatey requires Windows')
|
||||
elif __grains__['osrelease'] in ('XP', '2003Server'):
|
||||
return False
|
||||
return (False, 'Cannot load module chocolatey: Chocolatey requires Windows Vista or later')
|
||||
return 'chocolatey'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user