def __virtual__():
    if not salt.utils.is_windows():
        return (False, 'Cannot load module chocolatey: Chocolatey requires Windows')
    elif __grains__['osrelease'] in ('XP', '2003Server'):
        return (False, 'Cannot load module chocolatey: Chocolatey requires Windows Vista or later')
    return 'chocolatey'
Confirm this module is on a Windows system running Vista or later.
dataset/ETHPy150Open saltstack/salt/salt/modules/chocolatey.py/__virtual__