Adds chocolatey warning message

This commit is contained in:
Spencer Owen 2015-12-02 17:58:08 -07:00
parent f5e24872f1
commit ec8341977e

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'