Werk #16623: HW/SW Inventory: Fix crash when filtering for number of sites for Checkmk version

Komponente HW/SW inventory
Titel HW/SW Inventory: Fix crash when filtering for number of sites for Checkmk version
Datum 11.03.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.0b3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p43 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When filtering the Checkmk versions -> #Sites inventory column, a crash occurs with

TypeError (expected string or bytes-like object)
...
File "/omd/sites/oldstable/lib/python3/cmk/gui/query_filters.py", line 510, in <lambda>
    return lambda row: bool(regex.search(row.get(column, "")))

This crash has been fixed.

Zur Liste aller Werks