use config_base_name as suggested in

https://github.com/zalando/patroni/pull/210#discussion_r66249672
This commit is contained in:
Misja Hoebe
2016-06-08 15:37:54 +02:00
parent b8f5576a51
commit 6159d92f74
+3 -3
View File
@@ -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,