Werk #18176: disktat: fix rulespec migration when using the API

Component Checks & agents
Title disktat: fix rulespec migration when using the API
Date Aug 11, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When using the API to create rules, the diskstat rulespec would migrate provided conifguration values and eventually drop unknown keys, as well as add missing keys without feedback.

With this werk, the migration will only add default keys and values when they are missing. Other keys and values will be kept and will be subsequently rejected by the validation.

To the list of all Werks