Werk #12010: Fix for config update: Regex validation will ignore items that are not dictionaries

Component Checks & agents
Title Fix for config update: Regex validation will ignore items that are not dictionaries
Date Feb 22, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0b8 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Since checkmk version 2.0.0b7 the Checkmk update procedure (cmk-update-config) validates regexes. This validation failed with the error message "AttributeError: 'str' object has no attribute 'get'" if the item of a rule was not of the type "dict" or "None". We can skip the regex validation if the item is not of type "dict".

To the list of all Werks