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
client.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录