Import missing gettext _
All ceilometer service/agent use gettextutils.install but gettext method _ is not even installed for test. This change, import gettext method _ explicitly in each file that use _ . Change-Id: Ic30e301f420a4626c3b8725aa450cd7638ece3fe
This commit is contained in:
parent
7c14a42bd6
commit
1c224dded0
@ -40,6 +40,7 @@ import wsmeext.pecan as wsme_pecan
|
||||
from wsme import types as wtypes
|
||||
|
||||
from ceilometer.openstack.common import context
|
||||
from ceilometer.openstack.common.gettextutils import _
|
||||
from ceilometer.openstack.common import log
|
||||
from ceilometer.openstack.common import timeutils
|
||||
from ceilometer import sample
|
||||
|
@ -19,6 +19,7 @@
|
||||
from collections import defaultdict
|
||||
|
||||
from ceilometer import sample
|
||||
from ceilometer.openstack.common.gettextutils import _
|
||||
from ceilometer.openstack.common import log
|
||||
from ceilometer.openstack.common import timeutils
|
||||
from ceilometer import transformer
|
||||
|
Loading…
Reference in New Issue
Block a user