diff --git a/patroni/postgresql/bootstrap.py b/patroni/postgresql/bootstrap.py index f58c8a81..ca72fc59 100644 --- a/patroni/postgresql/bootstrap.py +++ b/patroni/postgresql/bootstrap.py @@ -130,7 +130,7 @@ class Bootstrap(object): # (pghost empty or the default socket directory) connections coming from the local machine. r['host'] = 'localhost' # set it to localhost to write into pgpass - env = self._postgresql.config.write_pgpass(r) if 'password' in r else None + env = self._postgresql.config.write_pgpass(r) env['PGOPTIONS'] = '-c synchronous_commit=local' try: