소스 검색

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: