Werk #16682: Ruleset API: Fix migration with scaling of SimpleLevels
Komponente | Checks & agents | ||||
Titel | Ruleset API: Fix migration with scaling of SimpleLevels | ||||
Datum | 17.04.2024 | ||||
Level | Kleine Änderung | ||||
Klasse | Bugfix | ||||
Kompatibilität | Inkompatibel - Manuelle Interaktion könnte erforderlich sein | ||||
Checkmk versions & editions |
|
This change is relevant to plugin developers
The migration helper functions migrate_to_integer_simple_levels
and migrate_to_float_simple_levels
for SimpleLevels
currently apply the scaling factor (if given) every time the migration is run, meaning also to the already migrated value.
This means any rule where these helpers are used with a scaling factor will have incorrect values and will have to be manually corrected.
No shipped rules are affected by this.