Use international logging message

Change-Id: I09be95a4a2fee0d7448295d58df892bcc48141a6
This commit is contained in:
Jiong Liu 2016-09-23 22:56:24 +08:00
parent 1487968d31
commit bf50f8ce67
1 changed files with 3 additions and 3 deletions

View File

@ -166,8 +166,8 @@ class BarbicanKeyManager(key_manager.KeyManager):
token=context.auth_token,
project_id=context.tenant)
else:
msg = "context must be of type KeystonePassword, KeystoneToken, "
"or RequestContext."
msg = u._("context must be of type KeystonePassword, "
"KeystoneToken, or RequestContext.")
LOG.error(msg)
raise exception.Forbidden(reason=msg)
@ -352,7 +352,7 @@ class BarbicanKeyManager(key_manager.KeyManager):
:return: the URL of the requested secret
"""
if not object_id:
msg = "Key ID is None"
msg = u._("Key ID is None")
raise exception.KeyManagerError(reason=msg)
base_url = self._base_url
if base_url[-1] != '/':