mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Make sure postgresql.stop also return True if pg_ctl stop returned 0.
This commit is contained in:
@@ -286,7 +286,7 @@ class Postgresql:
|
||||
ret = subprocess.call(self._pg_ctl + ['stop', '-m', 'fast'])
|
||||
if ret == 0 and 'on_stop' in self.callback:
|
||||
self.call_nowait('on_stop', is_leader=is_leader)
|
||||
return ret != 0
|
||||
return ret == 0
|
||||
|
||||
def reload(self):
|
||||
ret = subprocess.call(self._pg_ctl + ['reload'])
|
||||
|
||||
Reference in New Issue
Block a user