diff options
author | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-09-19 18:32:50 +0300 |
---|---|---|
committer | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-11-20 11:19:16 +0200 |
commit | e8c0b822f0ef4164d3752a1d8307b55fe4183a3c (patch) | |
tree | 76db903c019721108d136060f25fe9c5245eda2f /nova/consoleauth/manager.py | |
parent | b7535793afb4e40d8920a85bb44a894a6c6af1c2 (diff) | |
download | nova-e8c0b822f0ef4164d3752a1d8307b55fe4183a3c.tar.gz |
Replacement `_` on `_LW` in all LOG.warning part 1
oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating. For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack
There were not marker fuctions some places in directory network.
This commit makes changes:
* Add missing marker functions
* Use ',' instead of '%' while adding variables to log messages
Added a hacking rule for the warning about checking
translation for it and checking logging level `warning` instead
alias `warn`.
Change-Id: I2bced49dc5a0408a94d5d20d85b20c682886edbe
Diffstat (limited to 'nova/consoleauth/manager.py')
-rw-r--r-- | nova/consoleauth/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/consoleauth/manager.py b/nova/consoleauth/manager.py index ea55fe070c..1d755815c2 100644 --- a/nova/consoleauth/manager.py +++ b/nova/consoleauth/manager.py @@ -82,7 +82,7 @@ class ConsoleAuthManager(manager.Manager): if not self.mc.set(token.encode('UTF-8'), data, CONF.console_token_ttl): LOG.warning(_LW("Token: %(token)s failed to save into memcached."), - {'token': token}) + {'token': token}) tokens = self._get_tokens_for_instance(instance_uuid) # Remove the expired tokens from cache. for tok in tokens: |