Werk #12292: Rules: Fix displaying rule with empty service conditions

Component Setup
Title Rules: Fix displaying rule with empty service conditions
Date Mar 11, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Rules with an empty list of service conditions can not be created with the setup these days because they match no service at all. Previous versions made this possible.

Displaying these rules was not possible with previous 2.0.0 and lead to a crash "IndexError (list index out of range)".

To the list of all Werks