Do not use lazy translation for keystone-manage
lazy translation provides the ability to translate messages to different languages based on the request language in the HTTP request. Since keystone-manage doesn't handle HTTP requests it doesn't need to enable lazy translations. Change-Id: I0abab2565b604e3325f61cad412dc8b28f768f18
This commit is contained in:
parent
1cf858d451
commit
39f9854b81
@ -27,13 +27,6 @@ if os.path.exists(os.path.join(possible_topdir,
|
||||
'__init__.py')):
|
||||
sys.path.insert(0, possible_topdir)
|
||||
|
||||
from keystone.openstack.common import gettextutils
|
||||
# NOTE(dstanek): gettextutils.enable_lazy() must be called before
|
||||
# gettextutils._() is called to ensure it has the desired lazy lookup
|
||||
# behavior. This includes cases, like keystone.exceptions, where
|
||||
# gettextutils._() is called at import time.
|
||||
gettextutils.enable_lazy()
|
||||
|
||||
from keystone import cli
|
||||
from keystone.common import environment
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user