Skip to content

Commit

Permalink
Fix bug with refresh druid datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Mar 16, 2017
1 parent 6cdd001 commit a0c83da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,8 @@ def search_queries(self):
def refresh_datasources(self):
"""endpoint that refreshes druid datasources metadata"""
session = db.session()
DruidCluster = ConnectorRegistry.sources['druid']
DruidDatasource = ConnectorRegistry.sources['druid']
DruidCluster = DruidDatasource.cluster_class
for cluster in session.query(DruidCluster).all():
cluster_name = cluster.cluster_name
try:
Expand Down

0 comments on commit a0c83da

Please sign in to comment.