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

pull/11864/head
Brian Coca 9 years ago
parent faf4c3bb6c
commit 2b9b3a08a1

@ -1048,6 +1048,7 @@ 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)
if m:
d['host'] = m.group(1) d['host'] = m.group(1)
d['holders'] = [] d['holders'] = []

Loading…
Cancel
Save