Pass dict object to touch_member instead of json encoded string (#651)

DCS implementation will take care about encoding it.
Fixes https://github.com/zalando/patroni/issues/642
This commit is contained in:
Alexander Kukushkin
2018-04-04 13:45:44 +02:00
committed by GitHub
parent 140618abd2
commit 8c795ff0cf
+1 -1
View File
@@ -786,7 +786,7 @@ def touch_member(config, dcs):
'role': p.role
}
return dcs.touch_member(json.dumps(data, separators=(',', ':')), permanent=True)
return dcs.touch_member(data, permanent=True)
def set_defaults(config, cluster_name):