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

testnode: python3 support

pkg_resources.resource_string reads the file as binary, if we want to
substitute in this string we need to decode it.
parent b58aeb23
......@@ -220,7 +220,7 @@ class SlapOSControler(object):
proxy_database=self.proxy_database)
with open(self.slapos_config, 'w') as f:
f.write(pkg_resources.resource_string(
'erp5.util.testnode', 'template/slapos.cfg.in') %
'erp5.util.testnode', 'template/slapos.cfg.in').decode() %
slapos_config_dict)
# By erasing everything, we make sure that we are able to "update"
# existing profiles. This is quite dirty way to do updates...
......
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