[checkmk-commits] Check_MK Git: check_mk: Fixed changelog

git version control git at mathias-kettner.de
Wed Nov 14 15:25:59 CET 2012


Module: check_mk
Branch: master
Commit: 33980c3398f629ffe97e8ff40ed57d4654fdebd1
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33980c3398f629ffe97e8ff40ed57d4654fdebd1

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Wed Nov 14 15:24:48 2012 +0100

Fixed changelog

---

 ChangeLog          |    5 +++++
 web/htdocs/wato.py |    6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7246d22..adc68a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -106,6 +106,11 @@
     * if-checks now support "bit" as measurement unit
     * winperf_phydisk: monitor average queue length for read/write
 
+1.2.0p4
+    WATO
+    * FIX: Updating internal variables after moving hosts correctly
+      (fixes problems with hosts tree processed in hooks)
+
 1.2.0p3:
     Mulitisite
     * Added "view" parameter to dashlet_pnpgraph webservice
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 946ab41..d23391b 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1526,10 +1526,16 @@ def move_hosts_to(hostnames, path):
             continue
 
         mark_affected_sites_dirty(g_folder, hostname)
+
+        # Add to new folder
         target_hosts[hostname] = g_folder[".hosts"][hostname]
+        target_hosts[hostname]['.folder'] = target_folder
         target_folder["num_hosts"] += 1
+
+        # Remove from old folder
         g_folder["num_hosts"] -= 1
         del g_folder[".hosts"][hostname]
+
         mark_affected_sites_dirty(target_folder, hostname)
 
         if len(hostnames) == 1:



More information about the checkmk-commits mailing list