mirror of
https://opendev.org/x/pyghmi
synced 2025-01-28 11:57:34 +00:00
Fix behavior with some Lenovo Thinkservers
FRU data may return 0x81 on not-present devices and also provide some rough event description in the case of an unknown OEM SEL format. Change-Id: Ia99c4981c06ed8e067a584896fde3880f08f8baa
This commit is contained in:
parent
e019fb4c88
commit
3db5df1b4a
@ -132,8 +132,9 @@ class FRU(object):
|
||||
try:
|
||||
self.fetch_fru(fruid)
|
||||
except iexc.IpmiException as ie:
|
||||
if ie.ipmicode == 203:
|
||||
if ie.ipmicode in (203, 129):
|
||||
return
|
||||
raise
|
||||
self.parsedata()
|
||||
else:
|
||||
raise TypeError('Either rawdata or ipmicmd must be specified')
|
||||
|
@ -26,6 +26,9 @@ class OEMHandler(generic.OEMHandler):
|
||||
self.oemid = oemid
|
||||
|
||||
def process_event(self, event):
|
||||
if 'oemdata' in event:
|
||||
event['event'] = 'OEM event: {0}'.format(repr(event['oemdata']))
|
||||
return
|
||||
evdata = event['event_data_bytes']
|
||||
# For HDD bay events, the event data 2 is the bay, modify
|
||||
# the description to be more specific
|
||||
|
Loading…
x
Reference in New Issue
Block a user