2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Add replacement logic for another generic variant

In IMM, PCeGen3 x8 and similar is also possible.
This commit is contained in:
Jarrod Johnson 2018-09-06 16:16:26 -04:00
parent 2a8d61ecf6
commit b3bf6929df

View File

@ -905,7 +905,8 @@ class IpmiHandler(object):
self.output.put(errorneeded)
def add_invitem(self, invitems, newinf):
if fnmatch(newinf['name'], 'Adapter ??:??:??'):
if fnmatch(newinf['name'], 'Adapter ??:??:??') or fnmatch(
newinf['name'], 'PCIeGen? x*'):
myinf = newinf.get('information', {})
sdid = myinf.get('PCI Subsystem Device ID', None)
svid = myinf.get('PCI Subsystem Vendor ID', None)