2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Carry fix for null names to redfish

This commit is contained in:
Jarrod Johnson 2019-06-28 15:14:59 -04:00
parent 422f210f74
commit 8bbeeafa49

View File

@ -830,8 +830,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*') or
if (fnmatch(newinf['name'], 'Adapter ??:??:??') or fnmatch(
newinf['name'], 'PCIeGen? x*') or not newinf['name']):
newinf['name'] == 'Adapter' or
newinf['name'].startswith('slot_') or
newinf['name'].startswith('ob_')):