Werk #16890: check_ewon: ValueError (incomplete format)

Component Checks & agents
Title check_ewon: ValueError (incomplete format)
Date Aug 6, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p33 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Formatting a value with unit % would result in an invalid format-string making check_ewon crash with an exception ValueError (incomplete format). This change makes check_ewon use f-formatting instead of %-formatting.

To the list of all Werks