Skip to content

Commit

Permalink
Set sslmode to prefer, otherwise it might fail with clusters that don…
Browse files Browse the repository at this point in the history
…'t have the new certificate.
  • Loading branch information
arikfr authored Oct 22, 2017
1 parent 6214054 commit 22aa645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _get_connection(self):
host=self.configuration.get('host'),
port=self.configuration.get('port'),
dbname=self.configuration.get('dbname'),
sslmode='require',
sslmode='prefer',
sslrootcert=sslrootcert_path,
async=True)

Expand Down

0 comments on commit 22aa645

Please sign in to comment.