2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-12 02:38:20 +00:00

Fix cert util on pythoen3

python 3 had bytes and not str and need to be
decoded before string operations.
This commit is contained in:
Jarrod Johnson 2020-03-16 09:27:34 -04:00
parent 1bf7c6970f
commit 8fb206b1f7

View File

@ -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]