Module: check_mk
Branch: master
Commit: 47b1af3eac499e58052a7b0f2e16ade2dd0f5e22
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47b1af3eac499e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 20 12:46:54 2012 +0100
WATO: fix hook race condition when creating hosts
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 8d4d97d..9e39df2 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1991,8 +1991,8 @@ def mode_edithost(phase, new, cluster):
mark_affected_sites_dirty(g_folder, hostname)
log_pending(AFFECTED, hostname, "edit-host", _("Edited
properties of host [%s]") % hostname)
save_folder_and_hosts(g_folder)
- call_hook_hosts_changed(g_folder)
reload_hosts(g_folder)
+ call_hook_hosts_changed(g_folder)
errors = validate_all_hosts([hostname]).get(hostname, []) +
validate_host(g_folder[".hosts"][hostname], g_folder)
if errors: # keep on this page if host does not validate