Ensure glacenng can work with versioned keystone endpoints
This patch fixes glanceng module to make sure it
works with versioned keystone indentity endpoint.
Change-Id: Ie2307562bfa543d9cfabd996a3e6a035d69dd8b0
Related-Prod: PROD-18347
diff --git a/_modules/glanceng.py b/_modules/glanceng.py
index e8687d9..b39871d 100644
--- a/_modules/glanceng.py
+++ b/_modules/glanceng.py
@@ -98,8 +98,7 @@
'''
kstone = __salt__['keystoneng.auth'](profile, **connection_args)
- endpoint_type = connection_args.get('connection_endpoint_type', 'internal')
- g_endpoint = __salt__['keystoneng.endpoint_get']('glance', profile=profile, interface=endpoint_type)
+ g_endpoint = __salt__['keystoneng.endpoint_get']('glance', profile=profile)
glance_client = client.Client(api_version, session=kstone.session, endpoint=g_endpoint.get('url'))
return glance_client