Преглед изворни кода

HUE-8758 [connector] Do not load connectors with None interface

Romain пре 5 година
родитељ
комит
04a9a794fd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/core/src/desktop/lib/connectors/models.py

+ 1 - 1
desktop/core/src/desktop/lib/connectors/models.py

@@ -121,7 +121,7 @@ def _get_installed_connectors(category=None, categories=None, dialect=None, inte
     for connector_type in get_connectors_types():
       if connector_type['dialect'] == connector['dialect']:
         connector_types.insert(0, connector_type)
-      elif connector_type.get('interface') == connector['interface']:
+      elif connector['interface'] and connector_type.get('interface') == connector['interface']:
         connector_types.append(connector_type)
 
     if not connector_types: