mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
make sure you only update pci data if there is a match
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user