Module: check_mk
Branch: master
Commit: 0f9223decb9382f0ca6b83e85723f3769f9a53dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0f9223decb9382…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 6 12:02:14 2016 +0200
3366 FIX Fixed renaming of hosts not updating parents configured in folders
---
.werks/3366 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/watolib.py | 1 +
3 files changed, 12 insertions(+)
diff --git a/.werks/3366 b/.werks/3366
new file mode 100644
index 0000000..77b3d20
--- /dev/null
+++ b/.werks/3366
@@ -0,0 +1,10 @@
+Title: Fixed renaming of hosts not updating parents configured in folders
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1459936916
+
+
diff --git a/ChangeLog b/ChangeLog
index da3035b..153b0e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -222,6 +222,7 @@
* 3324 FIX: Do not crash whole catalog of check plugins if one man page is broken
* 3325 FIX: WATO CSV import: fix missing first line in preview after user error
* 3365 FIX: Cleaned up wrong counting of parents when renaming a host
+ * 3366 FIX: Fixed renaming of hosts not updating parents configured in folders
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 546a7e1..a5822e3 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -1611,6 +1611,7 @@ class Folder(BaseFolder):
changed = rename_host_in_list(self._attributes["parents"], oldname,
newname)
self.mark_hosts_dirty()
self.save_hosts()
+ self.save()
return changed