commit 623cef2d5c5d9f375c60c991f5ab9f951e9253fa
Author: Victor Stinner <email address hidden>
Date: Mon May 30 17:06:31 2016 +0200
Don't enable lazy translation when loading client
The change I9c8db9487b554b637a41620c858a7e7abf802879 introduced a
regression in nova and trove. Importing cinderclient.client now calls
_i18n.enable_lazy() which calls oslo_i18n.enable_lazy(). It's wrong to
modify a global variable (oslo_i18n._lazy.USE_LAZY) when a module is
imported.
This change removes the call to _i18n.enable_lazy() from client.py.
Reviewed: https:/ /review. openstack. org/322878 /git.openstack. org/cgit/ openstack/ python- cinderclient/ commit/ ?id=623cef2d5c5 d9f375c60c991f5 ab9f951e9253fa
Committed: https:/
Submitter: Jenkins
Branch: master
commit 623cef2d5c5d9f3 75c60c991f5ab9f 951e9253fa
Author: Victor Stinner <email address hidden>
Date: Mon May 30 17:06:31 2016 +0200
Don't enable lazy translation when loading client
The change I9c8db9487b554b 637a41620c858a7 e7abf802879 introduced a enable_ lazy() which calls oslo_i18n. enable_ lazy(). It's wrong to _lazy.USE_ LAZY) when a module is
regression in nova and trove. Importing cinderclient.client now calls
_i18n.
modify a global variable (oslo_i18n.
imported.
This change removes the call to _i18n.enable_lazy() from client.py.
Closes-Bug: #1587071 8fa226c6969124d dc654145562
Related-Bug: 1586976
Change-Id: I1512b86815e724