From 8fb206b1f74914cc22c3c6a59daa32784322fbe0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 16 Mar 2020 09:27:34 -0400 Subject: [PATCH] Fix cert util on pythoen3 python 3 had bytes and not str and need to be decoded before string operations. --- confluent_server/bin/confluentcertutil.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/bin/confluentcertutil.py b/confluent_server/bin/confluentcertutil.py index ddfb908d..c9e9d5f9 100644 --- a/confluent_server/bin/confluentcertutil.py +++ b/confluent_server/bin/confluentcertutil.py @@ -15,6 +15,8 @@ def get_openssl_conf_location(): def get_ip_addresses(): lines = subprocess.check_output('ip addr'.split(' ')) + if not isinstance(lines, str): + lines = lines.decode('utf8') for line in lines.split('\n'): if line.startswith(' inet6 '): line = line.replace(' inet6 ', '').split('/')[0]