mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user