Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: c4a5c350df7bb8e852b6c68a6d53bd1751268157
https://github.com/Checkmk/checkmk/commit/c4a5c350df7bb8e852b6c68a6d53bd175…
Author: Lars Michelsen <lm(a)checkmk.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
M cmk/base/config.py
M cmk/ec/rule_packs.py
M cmk/gui/config.py
Log Message:
-----------
Improve warnings created while reading in .mk files #2
Previously we produced exceptions or python warning messages without
references to the origin of this issue, similar to this:
```
<string>:52: SyntaxWarning: invalid escape sequence '\D'
```
With this change we get messages referencing to source of the message:
```
/omd/sites/beta/etc/check_mk/conf.d/wato/rules.mk:52: SyntaxWarning: invalid escape
sequence '\D'
{'id': '24da4ccd-0d1b-40e3-af87-0097df8668f2', 'value':
('service', '\Docker container status'), 'condition':
{'host_label_groups': [('and', [('and',
'cmk/docker_object:container')])]}, 'options': {'description':
'Make all docker container host states base on the "Docker container status"
service'}},
```
Change-Id: I184163c36772f3c87c10ee6f06e3f65723276b47
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications