Use international logging message
Change-Id: I09be95a4a2fee0d7448295d58df892bcc48141a6
This commit is contained in:
parent
1487968d31
commit
bf50f8ce67
@ -166,8 +166,8 @@ class BarbicanKeyManager(key_manager.KeyManager):
|
|||||||
token=context.auth_token,
|
token=context.auth_token,
|
||||||
project_id=context.tenant)
|
project_id=context.tenant)
|
||||||
else:
|
else:
|
||||||
msg = "context must be of type KeystonePassword, KeystoneToken, "
|
msg = u._("context must be of type KeystonePassword, "
|
||||||
"or RequestContext."
|
"KeystoneToken, or RequestContext.")
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
raise exception.Forbidden(reason=msg)
|
raise exception.Forbidden(reason=msg)
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ class BarbicanKeyManager(key_manager.KeyManager):
|
|||||||
:return: the URL of the requested secret
|
:return: the URL of the requested secret
|
||||||
"""
|
"""
|
||||||
if not object_id:
|
if not object_id:
|
||||||
msg = "Key ID is None"
|
msg = u._("Key ID is None")
|
||||||
raise exception.KeyManagerError(reason=msg)
|
raise exception.KeyManagerError(reason=msg)
|
||||||
base_url = self._base_url
|
base_url = self._base_url
|
||||||
if base_url[-1] != '/':
|
if base_url[-1] != '/':
|
||||||
|
Loading…
Reference in New Issue
Block a user