Fixe oslo i18n namespace errors

This commit is contained in:
tengqm 2015-01-19 13:35:02 +08:00
parent 2e960585bc
commit 143e00cc93

View File

@ -32,7 +32,7 @@ if os.path.exists(os.path.join(possible_topdir, 'senlin', '__init__.py')):
sys.path.insert(0, possible_topdir)
from oslo_config import cfg
from oslo import i18n
from oslo_i18n import _lazy
from senlin.common import config
from senlin.common.i18n import _LI
@ -41,7 +41,7 @@ from senlin.common import wsgi
from senlin.openstack.common import log as logging
from senlin.openstack.common import systemd
i18n.enable_lazy()
_lazy.enable_lazy()
LOG = logging.getLogger('senlin.api')