2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-14 03:37:49 +00:00

Handle adapters with null names

Under some situations, null names are given
for adapters, apply generic treatment to such
devices.
This commit is contained in:
Jarrod Johnson 2019-06-28 15:13:56 -04:00
parent 2e6029bd2c
commit 422f210f74

View File

@ -964,8 +964,8 @@ class IpmiHandler(object):
if newinf.get('information', None) and 'name' in newinf['information']:
newinf = copy.deepcopy(newinf)
del newinf['information']['name']
if fnmatch(newinf['name'], 'Adapter ??:??:??') or fnmatch(
newinf['name'], 'PCIeGen? x*'):
if (fnmatch(newinf['name'], 'Adapter ??:??:??') or fnmatch(
newinf['name'], 'PCIeGen? x*') or not newinf['name']):
myinf = newinf.get('information', {})
sdid = myinf.get('PCI Subsystem Device ID', None)
svid = myinf.get('PCI Subsystem Vendor ID', None)