Skip to content

Commit

Permalink
[Thermal] Fix for 'show platform fan' command (sonic-net#71)
Browse files Browse the repository at this point in the history
When a fan is under\over speed, status should change to 'Not OK' along with red LED color.

Signed-off-by: Shlomi Bitton <[email protected]>
  • Loading branch information
shlomibitton authored Jul 28, 2020
1 parent 029d5a5 commit a9f56e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic-thermalctld/scripts/thermalctld
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class FanUpdater(object):
('drawer_name', drawer_name),
('model', str(try_get(fan.get_model))),
('serial', str(try_get(fan.get_serial))),
('status', str(fan_fault_status)),
('status', str(fan_fault_status and not(fan_status.under_speed or fan_status.over_speed))),
('direction', str(fan_direction)),
('speed', str(speed)),
('speed_tolerance', str(speed_tolerance)),
Expand Down

0 comments on commit a9f56e4

Please sign in to comment.