From 52c362ce69a8b2fd1c7831743a37ba5f021e70ee Mon Sep 17 00:00:00 2001 From: Jaxon Wang Date: Fri, 11 Dec 2015 19:01:37 +0800 Subject: [PATCH] Add missing i18n module into CDH plugin edp_engine In CDH plugin 5.3.0 and 5.4.0, i18n is not imported and result in "global name '_' is not defined". Add missing module. Change-Id: Id44cfe42c26ee4871c96464a64360dfee0db7e23 Closes-Bug: #1525172 --- sahara/plugins/cdh/v5_3_0/edp_engine.py | 1 + sahara/plugins/cdh/v5_4_0/edp_engine.py | 1 + 2 files changed, 2 insertions(+) diff --git a/sahara/plugins/cdh/v5_3_0/edp_engine.py b/sahara/plugins/cdh/v5_3_0/edp_engine.py index 000d6477..12515b71 100644 --- a/sahara/plugins/cdh/v5_3_0/edp_engine.py +++ b/sahara/plugins/cdh/v5_3_0/edp_engine.py @@ -14,6 +14,7 @@ # limitations under the License. from sahara import exceptions as ex +from sahara.i18n import _ from sahara.plugins.cdh import confighints_helper as ch_helper from sahara.plugins.cdh.v5_3_0 import cloudera_utils as cu from sahara.plugins import exceptions as pl_ex diff --git a/sahara/plugins/cdh/v5_4_0/edp_engine.py b/sahara/plugins/cdh/v5_4_0/edp_engine.py index 0ee48637..251887b6 100644 --- a/sahara/plugins/cdh/v5_4_0/edp_engine.py +++ b/sahara/plugins/cdh/v5_4_0/edp_engine.py @@ -14,6 +14,7 @@ # limitations under the License. from sahara import exceptions as ex +from sahara.i18n import _ from sahara.plugins.cdh import confighints_helper as ch_helper from sahara.plugins.cdh.v5_4_0 import cloudera_utils as cu from sahara.plugins import exceptions as pl_ex