Skip to content

Commit

Permalink
Fix missing format call
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlwgriffiths committed Oct 28, 2016
1 parent dc345aa commit c1847fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def collect_aggregations(mappings, rows, parent_key, data, row, result_columns,
raise Exception("Redash failed to parse the results it got from ElasticSearch.")

def test_connection(self):
r = requests.get("{0}/_cluster/health", auth=self.auth)
r = requests.get("{0}/_cluster/health".format(self.server_url), auth=self.auth)
if r.status_code != 200:
raise Exception("Connection test failed.. Return Code: {0}"
" Reason: {1}".format(r.status_code, r.text))
Expand Down

0 comments on commit c1847fb

Please sign in to comment.