Werk #16891: check_ewon: TypeError ('NoneType' object is not subscriptable) raised if values for levels are missing

Component Checks & agents
Title check_ewon: TypeError ('NoneType' object is not subscriptable) raised if values for levels are missing
Date Aug 19, 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.0p14 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)

In case values for levels are missing and None taken instead, running the check function would crash with TypeError ('NoneType' object is not subscriptable).

This change hard codes some default values in case no values could be extracted.

To the list of all Werks