client.py 文件源码

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

项目:Assistant-for-Software-Defined-Infrastructure 作者: shank7485 项目源码 文件源码
def __init__(self, conf_path):
        self.conf_path = conf_path

        self.opt_group = cfg.OptGroup(name='endpoint',
                                 title='Get the endpoints for keystone')

        self.endpoint_opts = [cfg.StrOpt('endpoint', default='None',
            help=('URL or IP address where OpenStack keystone runs.'))
        ]

        CONF = cfg.CONF
        CONF.register_group(self.opt_group)
        CONF.register_opts(self.endpoint_opts, self.opt_group)

        CONF(default_config_files=[self.conf_path])
        self.AUTH_ENDPOINT = CONF.endpoint.endpoint
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号