mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-13 16:21:32 +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:
@ -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]
|
||||
|
Reference in New Issue
Block a user