mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Bugfix: get_client_path might get into infinite loop when response code is not 200
This commit is contained in:
@@ -45,6 +45,8 @@ class Etcd:
|
||||
time.sleep(3)
|
||||
elif ex:
|
||||
raise ex
|
||||
else:
|
||||
break
|
||||
|
||||
return response.json(), response.status_code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user