mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-09-01 09:09:21 +00:00
Use connect_address instead of listen when building connection_string
This commit is contained in:
@@ -37,8 +37,8 @@ class Postgresql:
|
||||
|
||||
self.config = config
|
||||
|
||||
self.connection_string = 'postgres://{username}:{password}@{listen}/postgres'.format(
|
||||
listen=self.config['connect_address'], **self.replication)
|
||||
self.connection_string = 'postgres://{username}:{password}@{connect_address}/postgres'.format(
|
||||
connect_address=self.config['connect_address'], **self.replication)
|
||||
|
||||
self.conn = None
|
||||
self.cursor_holder = None
|
||||
|
||||
Reference in New Issue
Block a user