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

Komponente Checks & agents
Titel Fix for config update: Regex validation will ignore items that are not dictionaries
Datum 22.02.2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.0.0b8 2.1.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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".

Zur Liste aller Werks