mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #29356 from spuder/choco
Adds chocolatey warning message
This commit is contained in:
commit
39e3350e7c
@ -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