When the Hardware Monitor starts up it reads existing alarms and sensor
state from the sysinv database. It then uses this pre-existing state to
align its internal structure accordingly moving forward.
The hardware monitor manage_startup_states utility is incorrectly
requesting degrade clear rather than degrade set in response to finding
a pre-existing critical sensor assertion on process startup.
This update fixes this issue by calling the set_degraded_state rather
than clear_degraded_state against this sensor in this case.
Change-Id: Ic1ecc1f11d7a729c16da63c6d43b7d758bb9e467
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
Story: 2002882
Task: 22845