Commit 07e2885e authored by Jérome Perrin's avatar Jérome Perrin

register: fix syntax error on python3.6

parent 224b397d
......@@ -279,7 +279,7 @@ def slapconfig(conf):
to_replace.append(('ipv6_interface', conf.ipv6_interface))
for key, value in to_replace:
cfg = re.sub('\n\s*%s\s*=.*' % key, '\n%s = %s' % (key, value), cfg)
cfg = re.sub('\n\\s*%s\\s*=.*' % key, '\n%s = %s' % (key, value), cfg)
if not dry_run:
with open(config_path, 'w') as fout:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment