def __virtual__():
    try:
        if salt.utils.is_proxy() and __opts__['proxy']['proxytype'] == 'rest_sample':
            return __virtualname__
    except __HOLE__:
        pass

    return False
dataset/ETHPy150Open saltstack/salt/salt/grains/rest_sample.py/__virtual__