mirror of
https://opendev.org/x/pyghmi
synced 2025-01-15 12:17:44 +00:00
Handle unknown entity ids
Vendors can do other entitiy ids. Have a catch all that provides the raw value in case there is no better lookup for the number. Change-Id: I66a226e1b38f6b31b95bfe58e044875decae09a8
This commit is contained in:
parent
aeece54e4c
commit
249ea5dda2
@ -318,7 +318,8 @@ class SDREntry(object):
|
||||
# this function handles the common aspects of compact and full
|
||||
# offsets from spec, minus 6
|
||||
self.sensor_number = entry[2]
|
||||
self.entity = ipmiconst.entity_ids[entry[3]]
|
||||
self.entity = ipmiconst.entity_ids.get(
|
||||
entry[3], 'Unknown entity {0}'.format(entry[3]))
|
||||
self.sensor_type_number = entry[7]
|
||||
try:
|
||||
self.sensor_type = ipmiconst.sensor_type_codes[entry[7]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user