mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Do not send 2 quotes for the empty request, instead, send None.
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ def post_patroni(member, endpoint, content, headers=None):
|
||||
headers['Content-Type'] = 'application/json'
|
||||
return requests.post('{0}://{1}/{2}'.format(url.scheme, url.netloc, endpoint),
|
||||
headers=headers,
|
||||
data=json.dumps(content), timeout=60)
|
||||
data=json.dumps(content) if content else None, timeout=60)
|
||||
|
||||
|
||||
def print_output(columns, rows=None, alignment=None, fmt='pretty', header=True, delimiter='\t'):
|
||||
|
||||
Reference in New Issue
Block a user