sahara.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:meteos 作者: openstack 项目源码 文件源码
def saharaclient(context):
    deprecated_opts_for_v2 = {
        'auth_url': CONF.sahara.auth_url,
        'token': context.auth_token,
        'tenant_id': context.tenant,
    }
    opts_for_v3 = {
        'auth_url': CONF.sahara.auth_url,
        'token': context.auth_token,
        'project_id': context.tenant,
    }
    AUTH_OBJ = client_auth.AuthClientLoader(
        client_class=sahara_client.Client,
        exception_module=sahara_exception,
        cfg_group=SAHARA_GROUP,
        deprecated_opts_for_v2=deprecated_opts_for_v2,
        opts_for_v3=opts_for_v3,
        url=CONF.sahara.auth_url,
        token=context.auth_token)
    return AUTH_OBJ.get_client(context)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号