From 80b5a370b0fc54a1fb52d7b980b8294f1e2a8c40 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 20 Jun 2016 15:21:33 +0200 Subject: [PATCH] API support restarts when a "pending restart" flag is set. --- patroni/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroni/api.py b/patroni/api.py index 36b950a1..ba37d5a0 100644 --- a/patroni/api.py +++ b/patroni/api.py @@ -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