From d3748823567e4c070ddb8c8cef8fb16fa78015e4 Mon Sep 17 00:00:00 2001 From: francobellagamba Date: Tue, 1 Aug 2017 13:56:40 +0200 Subject: [PATCH] Fixes #494 - Custom Bootrap Temp hba.conf (#496) * Fixes #494 --- patroni/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroni/postgresql.py b/patroni/postgresql.py index abd2b3f2..abe33ec8 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -1137,7 +1137,7 @@ class Postgresql(object): with open(self._pg_hba_conf, 'w') as f: f.write(self._CONFIG_WARNING_HEADER) for address, t in addresses.items(): - f.write('{0}\t{1}\t{2}\t{3}\ttrust\n'.format(t, self._database, + f.write('{0}\t{1}\t{2}\t{3}\ttrust\n'.format(t, 'all', self._superuser.get('username') or 'all', address)) elif not self._server_parameters.get('hba_file') and self.config.get('pg_hba'): with open(self._pg_hba_conf, 'w') as f: