make sure you only update pci data if there is a match
This commit is contained in:
parent
faf4c3bb6c
commit
2b9b3a08a1
1 changed files with 2 additions and 1 deletions
|
@ -1048,7 +1048,8 @@ class LinuxHardware(Hardware):
|
|||
pciid = m.group(1)
|
||||
did = re.escape(pciid)
|
||||
m = re.search("^" + did + "\s(.*)$", pcidata, re.MULTILINE)
|
||||
d['host'] = m.group(1)
|
||||
if m:
|
||||
d['host'] = m.group(1)
|
||||
|
||||
d['holders'] = []
|
||||
if os.path.isdir(sysdir + "/holders"):
|
||||
|
|
Loading…
Reference in a new issue