2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-27 19:37:57 +00:00

Fix startswith parameter

Needed to be bytes for subprocess
This commit is contained in:
Jarrod Johnson 2020-05-18 13:30:22 -04:00
parent 2b39b9b5a6
commit 317a1c572b

View File

@ -85,7 +85,7 @@ def handle_request(env, start_response):
['localectl', 'status']).split(b'\n')
for line in langinfo:
line = line.strip()
if line.startswith('System Locale:'):
if line.startswith(b'System Locale:'):
currlocale = line.split('=')[-1]
if not currlocale:
continue