From fa6c396589d23fcdf47150aedc0d8cea6c5db0bc Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Wed, 23 Sep 2020 13:33:54 +0200 Subject: [PATCH] Fix bug in the get_guc_value() (#1712) The `-D` parameter was forgotten. --- patroni/postgresql/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroni/postgresql/__init__.py b/patroni/postgresql/__init__.py index 0b8359b6..aceecdaa 100644 --- a/patroni/postgresql/__init__.py +++ b/patroni/postgresql/__init__.py @@ -700,7 +700,7 @@ class Postgresql(object): return True def get_guc_value(self, name): - cmd = [self.pgcommand('postgres'), self._data_dir, '-C', name] + cmd = [self.pgcommand('postgres'), '-D', self._data_dir, '-C', name] try: data = subprocess.check_output(cmd) if data: