def __virtual__():
    if salt.utils.is_windows() and HAS_DEPENDENCIES:
        return True
    return (False, "Module win_update: module has failed dependencies or is not on Windows client")
Only works on Windows systems
dataset/ETHPy150Open saltstack/salt/salt/modules/win_update.py/__virtual__