summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--geo-replication/syncdaemon/configinterface.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/configinterface.py b/geo-replication/syncdaemon/configinterface.py
index 50e7aedeba6..95c153ec7e2 100644
--- a/geo-replication/syncdaemon/configinterface.py
+++ b/geo-replication/syncdaemon/configinterface.py
@@ -337,12 +337,18 @@ class GConffile(object):
def update_from_sect(sect, mud):
for k, v in self.config._sections[sect].items():
+ # Template expects String to be passed
+ # if any config value is not string then it
+ # fails with ValueError
+ v = u"{0}".format(v)
+
if k == '__name__':
continue
if allow_unresolved:
dct[k] = Template(v).safe_substitute(mud)
else:
dct[k] = Template(v).substitute(mud)
+
for sect in self.ord_sections():
sp = self.parse_section(sect)
if isinstance(sp[0], re_type) and len(sp) == len(self.peers):