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

Revert "Carry fix for null names to redfish"

This reverts commit 8bbeeafa49.
This commit is contained in:
Jarrod Johnson 2019-06-28 16:01:26 -04:00
parent 083f5c8654
commit c8931ae6e7

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