Module: check_mk
Branch: master
Commit: 8426c613fc6ecbf255a07dc4cdef381b4393d3b8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8426c613fc6ecb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 22 09:49:54 2016 +0100
Fixed broken host edit page since yesterday
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ffdc7d6..61df313 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1181,7 +1181,7 @@ def mode_edit_host(phase, new, is_cluster):
# edit
elif not new:
- if not Folder.current().has_host(clonename):
+ if not Folder.current().has_host(hostname):
raise MKGeneralException(_("You called this page with an invalid host
name."))
mode = "edit"
@@ -2597,7 +2597,7 @@ def mode_inventory(phase, firsttime):
hostname = html.var("host")
host = Folder.current().host(hostname)
if not host:
- raise MKGeneralException(_("You called this page for a non-existing
host."))
+ raise MKGeneralException(_("You called this page with an invalid host
name."))
host.need_permission("read")