Module: check_mk
Branch: master
Commit: c4ae341176eb294fb47b27c8589c7ffaa7818589
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c4ae341176eb29…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Sep 6 09:39:07 2018 +0200
6579 FIX Fixed host renaming in notification rules
Under certain circumstances, it was possible that hosts in notification
rules of a user were not rewritten during host renaming. This has been
fixed.
Change-Id: I58e9c38f193c18574a60f2b155461d5c43c19d5b
---
.werks/6579 | 12 ++++++++++++
cmk/gui/wato/__init__.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/6579 b/.werks/6579
new file mode 100644
index 0000000..a05d084
--- /dev/null
+++ b/.werks/6579
@@ -0,0 +1,12 @@
+Title: Fixed host renaming in notification rules
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1536219419
+Class: fix
+
+Under certain circumstances, it was possible that hosts in notification
+rules of a user were not rewritten during host renaming. This has been
+fixed.
diff --git a/cmk/gui/wato/__init__.py b/cmk/gui/wato/__init__.py
index 20e3541..6a222f1 100644
--- a/cmk/gui/wato/__init__.py
+++ b/cmk/gui/wato/__init__.py
@@ -2327,7 +2327,7 @@ def rename_host_in_event_rules(oldname, newname):
num_changed = rename_in_event_rules(rules)
if num_changed:
actions += [ "notify_user" ] * num_changed
- some_changed = True
+ some_user_changed = True
rules = watolib.load_notification_rules()
num_changed = rename_in_event_rules(rules)