We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0969202 commit a6c0071Copy full SHA for a6c0071
sonic-thermalctld/scripts/thermalctld
@@ -311,12 +311,15 @@ class FanUpdater(logger.Logger):
311
if not is_psu_fan:
312
self._set_fan_led(fan_drawer, fan, fan_name, fan_status)
313
314
+ if fan_fault_status != NOT_AVAILABLE:
315
+ fan_fault_status = fan_status.is_ok()
316
+
317
fvs = swsscommon.FieldValuePairs(
318
[('presence', str(presence)),
319
('drawer_name', drawer_name),
320
('model', str(try_get(fan.get_model))),
321
('serial', str(try_get(fan.get_serial))),
- ('status', str(fan_fault_status and not(fan_status.under_speed or fan_status.over_speed))),
322
+ ('status', str(fan_fault_status)),
323
('direction', str(fan_direction)),
324
('speed', str(speed)),
325
('speed_tolerance', str(speed_tolerance)),
0 commit comments