From 369463eb9f5f38785ce1ab14cbe23d794e4ee75e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 15 May 2015 14:50:13 -0400 Subject: [PATCH] For unspecified sensors use None as the component Rather than use the string 'Unspecified', use the None object to denote an event that has no associated component. Change-Id: I8b8431257a01434ec09aaa940fab5bbce2164ae6 --- pyghmi/ipmi/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index 0ca3d39c..0e91c920 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -382,7 +382,7 @@ class EventHandler(object): event['component'] = self._sdr.sensors[eventdata[4]].name except KeyError: if eventdata[4] == 0: - event['component'] = 'Unspecified' + event['component'] = None else: event['component'] = 'Sensor {0}'.format(eventdata[4]) event['deassertion'] = (eventdata[5] & 0b10000000 == 0b10000000)