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

Component HW/SW inventory
Title HW/SW Inventory: Fix crash when filtering for number of sites for Checkmk version
Date Mar 11, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
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.

To the list of all Werks