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

Komponente Checks & agents
Titel check_ewon: TypeError ('NoneType' object is not subscriptable) raised if values for levels are missing
Datum 19.08.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.4.0b1 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.

Zur Liste aller Werks