Use connect_address instead of listen when building connection_string

This commit is contained in:
Alexander Kukushkin
2015-05-15 12:20:24 +02:00
parent 75ff91d017
commit af9ebfa3b9
+2 -2
View File
@@ -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