From 9b90a872e826e05bf51a8ba7f55f491ef4f86b16 Mon Sep 17 00:00:00 2001 From: Wirut Getbamrung Date: Wed, 3 Jun 2020 08:16:42 +0700 Subject: [PATCH] [thermalctld] Fix invalid warning status (#58) --- sonic-thermalctld/scripts/thermalctld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-thermalctld/scripts/thermalctld b/sonic-thermalctld/scripts/thermalctld index 69d188abd..19990af0f 100644 --- a/sonic-thermalctld/scripts/thermalctld +++ b/sonic-thermalctld/scripts/thermalctld @@ -516,7 +516,7 @@ class TemperatureUpdater(object): 'High temperature warning: {} current temperature {}C, high threshold {}C'. format(name, temperature, high_threshold) ) - warning = warning | temperature_status.over_temperature + warning = warning | temperature_status.over_temperature if temperature != NOT_AVAILABLE and temperature_status.set_under_temperature(temperature, low_threshold): log_on_status_changed(not temperature_status.under_temperature, @@ -525,7 +525,7 @@ class TemperatureUpdater(object): 'Low temperature warning: {} current temperature {}C, low threshold {}C'. format(name, temperature, low_threshold) ) - warning = warning | temperature_status.under_temperature + warning = warning | temperature_status.under_temperature fvs = swsscommon.FieldValuePairs( [('temperature', str(temperature)),