netbox-agent
netbox-agent copied to clipboard
lshw output UnicodeDecodeError
File "/usr/share/python/netbox-agent/lib/python3.4/site-packages/netbox_agent/lshw.py", line 16, in __init__
'lshw -quiet -json'
File "/usr/lib/python3.4/subprocess.py", line 736, in getoutput
return getstatusoutput(cmd)[1]
File "/usr/lib/python3.4/subprocess.py", line 717, in getstatusoutput
data = check_output(cmd, shell=True, universal_newlines=True, stderr=STDOUT)
File "/usr/lib/python3.4/subprocess.py", line 609, in check_output
output, unused_err = process.communicate(inputdata, timeout=timeout)
File "/usr/lib/python3.4/subprocess.py", line 947, in communicate
stdout = _eintr_retry_call(self.stdout.read)
File "/usr/lib/python3.4/subprocess.py", line 491, in _eintr_retry_call
return func(*args)
File "/usr/share/python/netbox-agent/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 164: ordinal not in range(128)```