From 2a44ad88ccc5ede3b8eaedae27a576ace9bb7e1d Mon Sep 17 00:00:00 2001 From: zhangjl Date: Wed, 28 Dec 2016 08:36:35 +0000 Subject: [PATCH] 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 --- nimble/engine/flows/create_instance.py | 1 + nimble/engine/manager.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nimble/engine/flows/create_instance.py b/nimble/engine/flows/create_instance.py index a8be3000..6b23f19b 100644 --- a/nimble/engine/flows/create_instance.py +++ b/nimble/engine/flows/create_instance.py @@ -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 diff --git a/nimble/engine/manager.py b/nimble/engine/manager.py index 11a1c1fd..4009067a 100644 --- a/nimble/engine/manager.py +++ b/nimble/engine/manager.py @@ -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