Fix translations usage of _

_ wasn't being imported here, but was being used at [1] and [2]. Import
_ from nimble.common.i18n to fix this.

[1]https://github.com/openstack/nimble/blob/master/nimble/engine/manager.py#L109
[2]https://github.com/openstack/nimble/blob/master/nimble/engine/flows/create_instance.py#L317

Close-Bug: #1652906
Change-Id: I53f524c9a2bc3fb6a285005166375615ebe27292
This commit is contained in:
zhangjl 2016-12-28 08:36:35 +00:00
parent 17ff537060
commit 2a44ad88cc
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ from taskflow.patterns import linear_flow
from nimble.common import exception
from nimble.common import flow_utils
from nimble.common.i18n import _
from nimble.common.i18n import _LE
from nimble.common.i18n import _LI
from nimble.common import utils

View File

@ -22,6 +22,7 @@ from oslo_service import periodic_task
from nimble.common import exception
from nimble.common import flow_utils
from nimble.common.i18n import _
from nimble.common.i18n import _LE
from nimble.common.i18n import _LI
from nimble.conf import CONF