Skip to content

Commit 9552adc

Browse files
authored
Return global config only when /config key exists in DCS (patroni#3393)
Close patroni#3389
1 parent 1ee6c5a commit 9552adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patroni/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def do_GET_config(self) -> None:
567567
``502`` instead.
568568
"""
569569
cluster = self.server.patroni.dcs.cluster or self.server.patroni.dcs.get_cluster()
570-
if cluster.config:
570+
if cluster.config and cluster.config.modify_version:
571571
self._write_json_response(200, cluster.config.data)
572572
else:
573573
self.send_error(502)

0 commit comments

Comments
 (0)