From 7e643ce3b5953b6a79ada3c3be1a3b32629eb219 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 25 Oct 2024 11:41:12 -0400 Subject: [PATCH] Ignore exhaust when looking for inlet External environment is vague, but 'exhaust' in the name is a pretty safe disqualifier. Change-Id: I4395b89d48ea25f72abe6136856401598d8346f7 --- pyghmi/ipmi/oem/generic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/oem/generic.py b/pyghmi/ipmi/oem/generic.py index 7b32738a..faa304b7 100644 --- a/pyghmi/ipmi/oem/generic.py +++ b/pyghmi/ipmi/oem/generic.py @@ -104,6 +104,8 @@ class OEMHandler(object): if sensor.sensor_type != 'Temperature': continue if sensor.entity == 'External environment': + if 'exhaust' in sensor.sensor_name.lower(): + continue extenv.append(sensor.sensor_name) if sensor.entity == 'Air inlet': airinlets.append(sensor.sensor_name)