Remove i18n.enable_lazy() call from tacker.cmd

Lazy translation of messages is not used in OpenStack. This
causes problems for commands which use translatable messages.
The lazy translation effort was abandoned several years ago.
For more information refer [1]

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-November/136289.html

Change-Id: I42cde2be3a5507861989c8e20eee416f06c79351
This commit is contained in:
akhiljain23 2018-11-14 12:36:00 +05:30
parent 2350cc7496
commit 29ed778793
2 changed files with 0 additions and 6 deletions

View File

@ -18,7 +18,3 @@ _translators = oslo_i18n.TranslatorFactory(domain='tacker')
# The primary translation function using the well-known name "_"
_ = _translators.primary
def enable_lazy(enable=True):
return oslo_i18n.enable_lazy(enable)

View File

@ -24,8 +24,6 @@ from oslo_config import cfg
import oslo_i18n
from oslo_service import service as common_service
from tacker import _i18n
_i18n.enable_lazy()
from tacker.common import config
from tacker import service