From 6159d92f743d02171407018a674d5065c022c498 Mon Sep 17 00:00:00 2001 From: Misja Hoebe Date: Wed, 8 Jun 2016 15:37:54 +0200 Subject: [PATCH] use config_base_name as suggested in https://github.com/zalando/patroni/pull/210#discussion_r66249672 --- patroni/postgresql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patroni/postgresql.py b/patroni/postgresql.py index d06c3151..f357208f 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -60,9 +60,9 @@ class Postgresql(object): self.callback = config.get('callbacks') or {} self.use_slots = config.get('use_slots', True) self._schedule_load_slots = self.use_slots - self._postgresql_conf = os.path.join(self._data_dir, - config.get('config', 'postgresql.conf')) - self._postgresql_base_conf_name = 'postgresql.base.conf' + config_base_name = config.get('config_base_name', 'postgresql') + self._postgresql_conf = os.path.join(self._data_dir, config_base_name + '.conf') + self._postgresql_base_conf_name = config_base_name + '.base.conf' self._postgresql_base_conf = os.path.join(self._data_dir, self._postgresql_base_conf_name) self._recovery_conf = os.path.join(self._data_dir, 'recovery.conf') self._configuration_to_save = (self._postgresql_conf, self._postgresql_base_conf,