[bug] missing bytes conversion

parent 0d7b5a9b
Pipeline #25681 failed with stages
in 97 minutes and 4 seconds
......@@ -448,7 +448,7 @@ def openvpn_stop(args):
"""
plist = get_process_list()
for pid, proc in plist:
if bytes("openvpn", encoding='utf-8') in proc and LEAPOPENVPN in proc:
if bytes("openvpn", 'utf-8') in proc and bytes(LEAPOPENVPN, 'utf-8') in proc:
os.kill(int(pid), signal.SIGTERM)
break
......
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