Need to decode the subprocess.run bytes to ascii

This commit is contained in:
2023-01-14 19:41:43 +01:00
parent ea325b0686
commit ee38b9d5e8

View File

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