Module: check_mk
Branch: master
Commit: e6be427af36540a66359bd1b86d32275a28f9720
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e6be427af36540…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 31 14:17:55 2012 +0100
Fixed bug with new multi host validation
---
web/htdocs/wato.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3c63fdb..78e4475 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1737,7 +1737,7 @@ def mode_edithost(phase, new):
call_hook_hosts_changed(g_folder)
reload_hosts(g_folder)
- errors = validate_all_hosts([hostname]) + validate_host(hostname)
+ errors = validate_all_hosts([hostname]).get(hostname, []) +
validate_host(hostname)
if errors: # keep on this page if host does not validate
return
elif new:
@@ -1751,7 +1751,7 @@ def mode_edithost(phase, new):
if new:
render_folder_path()
else:
- errors = validate_all_hosts([hostname]) + validate_host(hostname)
+ errors = validate_all_hosts([hostname]).get(hostname, []) +
validate_host(hostname)
if errors:
html.write("<div class=info>")