From f734272f3f437bf0c38a92ff0183e4b2340bdd5a Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 13 Jul 2015 11:45:25 +0200 Subject: [PATCH] Process the command paths relative to the patroni dir correctly, fix the error of not supplying a callback action to the actual command. --- helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index 5dff6578..de73ee93 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -246,7 +246,7 @@ class Postgresql: cmd = self.callback[cb_name] is_master = self.is_leader() name = self.name - subprocess.Popen(shlex.split(cmd)+[is_master, name]) + subprocess.Popen(shlex.split(os.path.abspath(cmd))+[cb_name, is_master, name]) return True def start(self):