From cbe0896f008dda6c8a4347f3670a236879fcf980 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 27 Feb 2024 11:20:38 -0500 Subject: [PATCH] No longer consider unrecognized states as 'warning' The precedent seems to be to ignore unknown states, so follow that. Change-Id: Ibafc28a1695276455401334aeca8e4f0dc65446b --- pyghmi/ipmi/sdr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyghmi/ipmi/sdr.py b/pyghmi/ipmi/sdr.py index aaf8f5e7..83989345 100644 --- a/pyghmi/ipmi/sdr.py +++ b/pyghmi/ipmi/sdr.py @@ -469,11 +469,11 @@ class SDREntry(object): health = sensedata['severity'] else: desc = "Unknown state %d" % state - health = const.Health.Warning + health = const.Health.Ok except KeyError: desc = "Unknown state %d for reading type %d/sensor type %d" % ( state, self.reading_type, self.sensor_type_number) - health = const.Health.Warning + health = const.Health.Ok return desc, health def decode_sensor_reading(self, ipmicmd, reading):