Pārlūkot izejas kodu

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

Romain 6 gadi atpakaļ
vecāks
revīzija
cbe4563a8a

+ 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):