Need to decode the subprocess.run bytes to ascii

This commit is contained in:
Ruben van Staveren 2023-01-14 19:41:43 +01:00
parent ea325b0686
commit ee38b9d5e8
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -94,7 +94,7 @@ def create_app():
verbose=True)
result = [entry.groupdict() for entry in
re.finditer(_PFCTL_TABLE_PAT,
'\n'.join(res),
'\n'.join([x.decode('ascii') for x in res]),
re.MULTILINE|re.VERBOSE)]
return jsonify({'anchor': f'f2b-jail/{remote_user}',