mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-31 16:49:46 +00:00
API support restarts when a "pending restart" flag is set.
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ class RestApiHandler(BaseHTTPRequestHandler):
|
||||
status_code = 400
|
||||
data = "PostgreSQL version should be in the first.major.minor format"
|
||||
break
|
||||
else:
|
||||
elif k != 'with_pending_restart_flag':
|
||||
status_code = 400
|
||||
data = "Unknown filter for the scheduled restart: {0}".format(k)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user