os_manila_actions.py 文件源码

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

项目:fuel-plugin-manila 作者: openstack 项目源码 文件源码
def __init__(self, controller_ip, user='admin', passwd='admin',
                 tenant='admin'):
        """Create API client for manila service"""
        super(ManilaActions, self).__init__(controller_ip,
                                            user, passwd,
                                            tenant)

        auth_url, cert_path = self.__make_auth_url(controller_ip)
        auth = v2.Password(auth_url=auth_url, username=user,
                           password=passwd, tenant_name=tenant)

        if not DISABLE_SSL:
            if VERIFY_SSL:
                self.__keystone_ses = KeystoneSession(
                    auth=auth, ca_cert=cert_path)
            else:
                self.__keystone_ses = KeystoneSession(
                    auth=auth, verify=False)
        else:
            self.__keystone_ses = KeystoneSession(
                auth=auth)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号