diff options
author | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-09-22 15:39:12 +0300 |
---|---|---|
committer | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-11-20 11:19:09 +0200 |
commit | b7535793afb4e40d8920a85bb44a894a6c6af1c2 (patch) | |
tree | 893c8a04f98ee3b195c2116eba45af8c98116943 /nova/crypto.py | |
parent | 5ec332c197718d105fc33ba38407e34f7849477c (diff) | |
download | nova-b7535793afb4e40d8920a85bb44a894a6c6af1c2.tar.gz |
Replacement `_` on `_LE` in all LOG.exception
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 log exception about checking
translation for it.
Change-Id: If80ea6f177bb65afcdffce71550bb38fedcc54eb
Diffstat (limited to 'nova/crypto.py')
-rw-r--r-- | nova/crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/crypto.py b/nova/crypto.py index 36bf43858f..b96d11b4ba 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -38,7 +38,7 @@ from pyasn1.type import univ from nova import context from nova import db from nova import exception -from nova.i18n import _ +from nova.i18n import _, _LE from nova.openstack.common import fileutils from nova.openstack.common import log as logging from nova import paths @@ -399,7 +399,7 @@ def _sign_csr(csr_text, ca_folder): csrfile.write(csr_text) except IOError: with excutils.save_and_reraise_exception(): - LOG.exception(_('Failed to write inbound.csr')) + LOG.exception(_LE('Failed to write inbound.csr')) LOG.debug('Flags path: %s', ca_folder) start = os.getcwd() |