Werk #15094: HW/SW Inventory: Fix crash while filtering the operational status in network interfaces views

Component User interface
Title HW/SW Inventory: Fix crash while filtering the operational status in network interfaces views
Date Feb 17, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The crash shows

KeyError (invinterface_oper_status)
...
File "/omd/sites/gotamedia/lib/python3/cmk/gui/query_filters.py", line 947, in _add_row
    if (filter_key := "%s_%d" % (ident, row["invinterface_oper_status"])) in values:

To the list of all Werks