call in activate changes hook
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 533111876678cd34b4a644ddfcfdc3471593db72
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=533111876678cd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 29 12:13:31 2012 +0200
FIX: Removed double collect_hosts() call in activate changes hook
---
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aa79d32..2940eb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -66,6 +66,7 @@
* new: search for rules in "Host & Service Configuration"
* parent scan: new option "ping probes", that allows skipping
unreachable gateways.
+ * FIX: Removed double collect_hosts() call in activate changes hook
BI:
* Great speed up of rule compilation in large environments
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3cf34d3..d432640 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11279,7 +11279,7 @@ def call_hook_pre_activate_changes():
def call_hook_activate_changes():
if hook_registered('activate-changes'):
hosts = collect_hosts(g_root_folder)
- call_hooks("activate-changes", collect_hosts(g_root_folder))
+ call_hooks("activate-changes", hosts)
# This hook is executed when the save_users() function is called
def call_hook_users_saved(users):