Add OS_ENDPOINT_TYPE to glance module
* Ensure glance client looks for the OS_ENDPOINT_TYPE when connecting Fixes #671 Change-Id: I2070db0bd91eee9f159784f07f3a30d4ae2d9211
This commit is contained in:
parent
3a13141bc5
commit
7ee664a3dd
@ -112,10 +112,11 @@ class ManageGlance(object):
|
||||
|
||||
def _init_glance(self):
|
||||
""" Create glance client object using token and url from keystone """
|
||||
openrc = self._parse_openrc()
|
||||
self.glance = glclient.Client(
|
||||
version='1',
|
||||
endpoint=self.keystone.service_catalog.url_for(
|
||||
service_type='image'),
|
||||
service_type='image', endpoint_type=openrc['OS_ENDPOINT_TYPE']),
|
||||
token=self.keystone.get_token(self.keystone.session))
|
||||
|
||||
def route(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user