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:
parent
1bf7c6970f
commit
8fb206b1f7
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user