summaryrefslogtreecommitdiff
path: root/keystoneclient/auth/identity/base.py
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2014-10-27 10:54:48 -0500
committerJamie Lennox <jamielennox@redhat.com>2014-10-28 20:33:19 +0000
commitfece74ca3e56342bee43f561404c19128a613628 (patch)
tree7241c8dcb7f3176da3df660dbfb5006f9eb86fc1 /keystoneclient/auth/identity/base.py
parent3b766c51438396a0ab0032de309c9d56e275e0cb (diff)
downloadpython-keystoneclient-fece74ca3e56342bee43f561404c19128a613628.tar.gz
I18n
Keystoneclient didn't provide translated messages. With this change, the messages are marked for translation. DocImpact Implements: blueprint keystoneclient-i18n Change-Id: I85263a71671a1dffed524185266e6bb7ae559630
Diffstat (limited to 'keystoneclient/auth/identity/base.py')
-rw-r--r--keystoneclient/auth/identity/base.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/keystoneclient/auth/identity/base.py b/keystoneclient/auth/identity/base.py
index a58de2a..aae24c3 100644
--- a/keystoneclient/auth/identity/base.py
+++ b/keystoneclient/auth/identity/base.py
@@ -19,6 +19,7 @@ import six
from keystoneclient import _discover
from keystoneclient.auth import base
from keystoneclient import exceptions
+from keystoneclient.i18n import _LW
from keystoneclient import utils
LOG = logging.getLogger(__name__)
@@ -181,9 +182,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
return self.auth_url
if not service_type:
- LOG.warn('Plugin cannot return an endpoint without knowing the '
- 'service type that is required. Add service_type to '
- 'endpoint filtering data.')
+ LOG.warn(_LW('Plugin cannot return an endpoint without knowing '
+ 'the service type that is required. Add service_type '
+ 'to endpoint filtering data.'))
return None
if not interface:
@@ -216,8 +217,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
# NOTE(jamielennox): Again if we can't contact the server we fall
# back to just returning the URL from the catalog. This may not be
# the best default but we need it for now.
- LOG.warn('Failed to contact the endpoint at %s for discovery. '
- 'Fallback to using that endpoint as the base url.', url)
+ LOG.warn(_LW('Failed to contact the endpoint at %s for discovery. '
+ 'Fallback to using that endpoint as the base url.'),
+ url)
else:
url = disc.url_for(version)