service test conf: gotta decode the output

This commit is contained in:
Alexandre Aubin 2021-09-05 17:08:18 +02:00
parent 3b0bf74274
commit 4332278f07

View file

@ -286,7 +286,7 @@ def service_reload_or_restart(names, test_conf=True):
out, _ = p.communicate()
if p.returncode != 0:
errors = out.strip().split("\n")
errors = out.decode().strip().split("\n")
logger.error(
m18n.n("service_not_reloading_because_conf_broken", errors=errors)
)