Werk #19885: Fix crash when a predefined condition's unique ID contains a dash
| Component | Setup | ||||
| Title | Fix crash when a predefined condition's unique ID contains a dash | ||||
| Date | Jul 27, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
Previously, if a Predefined condition had a unique ID containing a dash (e.g. "my-condition"), creating or editing any rule crashed with an error similar to:
Internal error: 'my-condition' is not a valid, non-reserved Python identifier
This affected all rules, not just the one using the predefined condition. This change fixes that behavior and now dash containing predefined rules unique ID are allowed