Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: cd1c638f6c47544af3c4533512637c99fd943ffb
https://github.com/tribe29/checkmk/commit/cd1c638f6c47544af3c4533512637c99f…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-03-12 (Fri, 12 Mar 2021)
Changed paths:
A .werks/12354
M cmk/update_config.py
Log Message:
-----------
12354 FIX Uneditable WATO rules: <i>"You are trying to edit a rule which does
not exist anymore."</i>
During cmk-update-config we re-write the WATO rules.
In case the transformation of a value of an individual rule failed,
we did not write the transformed rulesets at all. This lead to
rules that could not be edited (the reported error was
<i>"You are trying to edit a rule which does not exist
anymore."</i>).
This could be mitigated by temporarily adding a new rule; after that
you could edit the pre-existing rules.
With this werk, we write the transformed rulesets even if the transformation
of single rules' values failed. That way, you can at least work with
all of the other rules, and replace the offending ones.
If this affects you, you can simply re-run cmk-update-config.
Change-Id: Ic0e4171630e9e306fe97ba07c05d28eb6e9c5b76