Werk #13887: Removed none_value keyword argument from Optional ValueSpec

Component User interface
Title Removed none_value keyword argument from Optional ValueSpec
Date Apr 12, 2022
Level Trivial Change
Class New Feature
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.2.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Note: If you don't use the Optional ValueSpec in your checks or in your GUI modifications, you are not affected by this change. And even if you use it, this change only affects you when you use the "none_value" keyword argument with a value different from "None". In a nutshell: Most users should not be affected at all.

The "none_value" keyword argeument has been removed to improve the typing of the Optional ValueSpec. The previous usages of this were a bit error-prone and not really necessary at all. If you are affected by this removal, you can use the Transform ValueSpec and/or tiny modifications of you code to handle "None".

To the list of all Werks