def __virtual__():
    if get_configured_provider() is False:
        return False

    if get_dependencies() is False:
        return False

    for provider, details in six.iteritems(__opts__['providers']):
        if 'gce' not in details:
            continue

        parameters = details['gce']
        pathname = os.path.expanduser(parameters['service_account_private_key'])
        if salt.utils.cloud.check_key_path_and_mode(
                provider, pathname
        ) is False:
            return False

    return __virtualname__
Set up the libcloud functions and check for GCE configurations.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/gce.py/__virtual__