Merge pull request #29356 from spuder/choco

Adds chocolatey warning message
This commit is contained in:
Mike Place 2015-12-02 18:00:52 -07:00
commit 39e3350e7c

View File

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