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

    return __virtualname__
Check for Joyent configs
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/joyent.py/__virtual__