Fix glance client initialization

Glance get image call is failing in engine

Change-Id: I4d0b0671941813f5f740fa1d2c47154e696b1764
This commit is contained in:
st6218 2020-04-23 15:29:23 -07:00 committed by Hari
parent b7167794a1
commit 03b5fc001a
1 changed files with 1 additions and 13 deletions

View File

@ -157,19 +157,7 @@ class Clients(object):
attempt = 1
while attempt >= 0:
try:
kwargs = {
'auth_url': CONF.auth_url,
'session': kc.session,
'auth': kc.session.auth,
'service_type': 'image',
'endpoint_type': 'publicURL',
'username': CONF.username,
'password': CONF.password,
'include_pass': 'False',
'endpoint_override': '',
}
client = glance.Client(version, **kwargs)
return client, kc
return glance.Client(version, session=kc.session)
except Exception as ex:
try:
kc = self.keystone()