Commit d62d5776 authored by Jérome Perrin's avatar Jérome Perrin

register: fix syntax error on python3.6

parent 35f4a463
......@@ -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