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 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
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".