Use i18n directly

We should use i18n directly rather than openstack/common.

Change-Id: I64d3abce4ee2747b670bc921ffbb03d76defd42c
This commit is contained in:
wangxiyuan
2015-11-13 15:29:09 +08:00
parent 0c348313a4
commit 57be02dcd2
5 changed files with 39 additions and 7 deletions

View File

@@ -26,7 +26,8 @@ from oslo_log import log as logging
from watcher.decision_engine.framework.manager_decision_engine import \
DecisionEngineManager
from watcher.openstack.common._i18n import _LI
from watcher import i18n
cfg.CONF.import_opt('hostname',
'watcher.metrics_engine.framework.'
'datasources.influxdb_collector',
@@ -34,6 +35,7 @@ cfg.CONF.import_opt('hostname',
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
_LI = i18n._LI
def main():