From c9f420fd4a49df59fc4aff655377598d2cebead8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pavl=C3=AD=C4=8Dek?= Date: Thu, 19 Aug 2021 08:32:45 +0200 Subject: [PATCH] Fix for bad string format in etcd srv_suffix resolution (#2037) Fix for silly mistake introduced in #2029. This time tested on real ETCD and DNS. --- patroni/dcs/etcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroni/dcs/etcd.py b/patroni/dcs/etcd.py index aef0d2b2..ec510a04 100644 --- a/patroni/dcs/etcd.py +++ b/patroni/dcs/etcd.py @@ -290,7 +290,7 @@ class AbstractEtcdClientWithFailover(etcd.Client): ret = [] for r in ['-client-ssl', '-client', '-ssl', '', '-server-ssl', '-server']: - r = r.format('{0}-{1}', r, srv_suffix) if srv_suffix else r + r = '{0}-{1}'.format(r, srv_suffix) if srv_suffix else r protocol = 'https' if '-ssl' in r else 'http' endpoint = '/members' if '-server' in r else '' for host, port in self.get_srv_record('_etcd{0}._tcp.{1}'.format(r, srv)):