Merge "Use translation hints"

This commit is contained in:
Jenkins 2014-06-14 18:33:34 +00:00 committed by Gerrit Code Review
commit af6783da1a
1 changed files with 5 additions and 3 deletions

View File

@ -22,6 +22,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 jsonutils
from keystone.openstack.common import log
@ -105,9 +106,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: