Fixing endpoint type for glance client

Providing endpoint_type option to glance client.
Without that, public endpoint will be used to communicate
with glance.

Change-Id: I03e7ff07049158a8737fdf50d66c3cf7163d9f7c
Closes-bug: #1643903
This commit is contained in:
Andrey Pavlov 2016-11-22 13:57:30 +00:00
parent a5c84c74c3
commit 76988e993c

View File

@ -43,5 +43,6 @@ CONF.register_opts(opts, group=glance_group)
def client(): def client():
session = sessions.cache().get_session(sessions.SESSION_TYPE_GLANCE) session = sessions.cache().get_session(sessions.SESSION_TYPE_GLANCE)
glance = glance_client.Client('2', session=session, auth=keystone.auth()) glance = glance_client.Client('2', session=session, auth=keystone.auth(),
interface=CONF.glance.endpoint_type)
return glance return glance