From 04c917bcc657235b41fa74f6f56da1c1c3289138 Mon Sep 17 00:00:00 2001 From: junchao Date: Thu, 24 Sep 2020 15:17:53 +0800 Subject: [PATCH] Fix fan status issue in 201911 --- sonic-thermalctld/scripts/thermalctld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-thermalctld/scripts/thermalctld b/sonic-thermalctld/scripts/thermalctld index 3a50fbfae..dc3107755 100644 --- a/sonic-thermalctld/scripts/thermalctld +++ b/sonic-thermalctld/scripts/thermalctld @@ -251,7 +251,7 @@ class FanUpdater(logger.Logger): self._set_fan_led(fan, fan_name, fan_status) if fan_fault_status != NOT_AVAILABLE: - fan_fault_status = fan_status.is_ok() + fan_fault_status = fan_fault_status and fan_status.is_ok() fvs = swsscommon.FieldValuePairs( [('presence', str(presence)),