Use international logging message

Change-Id: I2dd77e34c4877131229f735bb6bf8ae6a3fa2bfd
This commit is contained in:
liujiong 2016-08-18 15:29:40 +08:00
parent 03488d90e0
commit 05de73fb76
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ from castellan.common.credentials import keystone_token
from castellan.common.credentials import password
from castellan.common.credentials import token
from castellan.common import exception
from castellan.openstack.common import _i18n as u
from oslo_config import cfg
from oslo_log import log as logging
@ -163,7 +164,7 @@ def credential_factory(conf=None, context=None):
reauthenticate=conf.key_manager.reauthenticate)
else:
LOG.error("Invalid auth_type specified.")
LOG.error(u._LE("Invalid auth_type specified."))
raise exception.AuthTypeInvalidError(
type=conf.key_manager.auth_type)