Commit 2b9b3a08 by Brian Coca

make sure you only update pci data if there is a match

parent faf4c3bb
...@@ -1048,7 +1048,8 @@ class LinuxHardware(Hardware): ...@@ -1048,7 +1048,8 @@ class LinuxHardware(Hardware):
pciid = m.group(1) pciid = m.group(1)
did = re.escape(pciid) did = re.escape(pciid)
m = re.search("^" + did + "\s(.*)$", pcidata, re.MULTILINE) m = re.search("^" + did + "\s(.*)$", pcidata, re.MULTILINE)
d['host'] = m.group(1) if m:
d['host'] = m.group(1)
d['holders'] = [] d['holders'] = []
if os.path.isdir(sysdir + "/holders"): if os.path.isdir(sysdir + "/holders"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment