Werk #14563: heartbeat_rscstatus: Fix error during update

Component Checks & agents
Title heartbeat_rscstatus: Fix error during update
Date Nov 3, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p16 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p30 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

During discovery the plugin heartbeat_rscstatus stores its discovery state. Updating Checkmk from 2.0.0 to 2.1.0 or updates within those versions would cause these states to be lost. This is indicated by following error message:

-| 8/27 Rewriting autochecks...
-| Transform failed: host='host', plugin='heartbeat_rscstatus', ruleset='heartbeat_rscstatus', params={'discovered_state': 'none'}, error=AssertionError('non-empty params vanished')

With this werk, the states are correctly persisted.

To the list of all Werks