Process the command paths relative to the patroni dir correctly, fix the error of not supplying a callback action to the actual command.

This commit is contained in:
Oleksii Kliukin
2015-07-13 11:45:25 +02:00
parent 6d0a9bbdc0
commit f734272f3f
+1 -1
View File
@@ -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):