Fix glance client initialization
Glance get image call is failing in engine Change-Id: I4d0b0671941813f5f740fa1d2c47154e696b1764
This commit is contained in:
parent
b7167794a1
commit
03b5fc001a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue