From af9ebfa3b9d5d3b62a86e10266f7c9ed67cca03f Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Fri, 15 May 2015 12:20:24 +0200 Subject: [PATCH] Use connect_address instead of listen when building connection_string --- helpers/postgresql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index b0d2b8fd..3c669ab5 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -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