Use translation hints
Use the _LI() function instead of _() for new LOG.info messages. Change-Id: I6af25a33018e76b321488cacea65885fa597abbf Related-Bug: #1299012
This commit is contained in:
parent
33fd4cf8b3
commit
7f5e120ab8
|
@ -24,6 +24,7 @@ from keystone import config
|
|||
from keystone.contrib import federation
|
||||
from keystone import exception
|
||||
from keystone.openstack.common.gettextutils import _
|
||||
from keystone.openstack.common.gettextutils import _LI # noqa
|
||||
from keystone.openstack.common import importutils
|
||||
from keystone.openstack.common import log
|
||||
from keystone.openstack.common import timeutils
|
||||
|
@ -106,9 +107,10 @@ class AuthContext(dict):
|
|||
# special treatment for 'expires_at', we are going to take
|
||||
# the earliest expiration instead.
|
||||
if existing_val != val:
|
||||
msg = _('"expires_at" has conflicting values %(existing)s '
|
||||
'and %(new)s. Will use the earliest value.')
|
||||
LOG.info(msg, {'existing': existing_val, 'new': val})
|
||||
LOG.info(_LI('"expires_at" has conflicting values '
|
||||
'%(existing)s and %(new)s. Will use the '
|
||||
'earliest value.'),
|
||||
{'existing': existing_val, 'new': val})
|
||||
if existing_val is None or val is None:
|
||||
val = existing_val or val
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue