Skip to content

Commit

Permalink
fix: available endpoint showing specs without drivers (#15587)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Jul 8, 2021
1 parent 4f5f928 commit 301b94f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/databases/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,9 @@ def available(self) -> Response:
preferred_databases: List[str] = app.config.get("PREFERRED_DATABASES", [])
available_databases = []
for engine_spec, drivers in get_available_engine_specs().items():
if not drivers:
continue

payload: Dict[str, Any] = {
"name": engine_spec.engine_name,
"engine": engine_spec.engine,
Expand Down

0 comments on commit 301b94f

Please sign in to comment.