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,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…
Cancel
Save