we know lshw might fail, do not load as json
This commit is contained in:
parent
92658ebc86
commit
ba83ccba88
|
@ -250,7 +250,7 @@ def get_data(all_disks):
|
||||||
dmidecode = 'sudo dmidecode'
|
dmidecode = 'sudo dmidecode'
|
||||||
lspci = 'sudo lspci -vv'
|
lspci = 'sudo lspci -vv'
|
||||||
data = {
|
data = {
|
||||||
'lshw': json.loads(exec_cmd(lshw) or "{}"),
|
'lshw': exec_cmd(lshw) or "{}",
|
||||||
'disks': smartctl(all_disks),
|
'disks': smartctl(all_disks),
|
||||||
'hwinfo': exec_cmd(hwinfo),
|
'hwinfo': exec_cmd(hwinfo),
|
||||||
'dmidecode': exec_cmd(dmidecode),
|
'dmidecode': exec_cmd(dmidecode),
|
||||||
|
|
Loading…
Reference in a new issue