浏览代码

HUE-8888 [core] Avoid warning about flags being of type bool

Romain 6 年之前
父节点
当前提交
cbe4563a8a
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      apps/oozie/src/oozie/conf.py
  2. 1 1
      desktop/core/src/desktop/lib/scheduler/api.py

+ 3 - 3
apps/oozie/src/oozie/conf.py

@@ -96,21 +96,21 @@ ENABLE_OOZIE_BACKEND_FILTERING = Config(
 ENABLE_DOCUMENT_ACTION = Config(
   key="enable_document_action",
   help=_t("Flag to enable the saved Editor queries to be dragged and dropped into a workflow."),
-  type=bool,
+  type=coerce_bool,
   default=True
 )
 
 ENABLE_IMPALA_ACTION = Config(
   key="enable_impala_action",
   help=_t("Flag to enable the Impala action."),
-  type=bool,
+  type=coerce_bool,
   default=False
 )
 
 ENABLE_ALTUS_ACTION = Config(
   key="enable_altus_action",
   help=_t("Flag to enable the Altus action."),
-  type=bool,
+  type=coerce_bool,
   default=False
 )
 

+ 1 - 1
desktop/core/src/desktop/lib/scheduler/api.py

@@ -34,7 +34,7 @@ try:
   from oozie.forms import ParameterForm
   from oozie.views.editor2 import edit_coordinator, new_coordinator, Coordinator
 except Exception as e:
-  LOG.exception('Oozie application is not enabled: %s' % e)
+  LOG.warn('Oozie application is not enabled: %s' % e)
 
 
 def new_schedule(request):