Pass 'client', 'message' param to AuthorizationFailure Exception
Change-Id: I93fcf9ce767634ed39ad0429dc4e04a7bec0bc2b
This commit is contained in:
parent
66524fb219
commit
05edfeb7ea
@ -80,9 +80,11 @@ class KeystoneClientV3(object):
|
||||
auth = ka_v3.Token(auth_url=self.auth_url,
|
||||
token=self.context.auth_token)
|
||||
else:
|
||||
LOG.error(_LE('Keystone API connection failed: no password '
|
||||
'or token found.'))
|
||||
raise exception.AuthorizationFailure()
|
||||
msg = _LE('Keystone API connection failed: no password, '
|
||||
'trust_id or token found.')
|
||||
LOG.error(msg)
|
||||
raise exception.AuthorizationFailure(client='keystone',
|
||||
message='reason %s' % msg)
|
||||
|
||||
return auth
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user