Module: check_mk
Branch: master
Commit: 44fa75fc21419b762a37622bebcb40021bf6478c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44fa75fc21419b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 2 09:00:39 2016 +0200
Fixed error handling on WATO host/service parameter page for not existing objects
---
web/htdocs/wato.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3969f91..17ee641 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2033,6 +2033,8 @@ def render_renaming_actions(action_counts):
def mode_object_parameters(phase):
hostname = html.var("host") # may be empty in new/clone mode
host = Folder.current().host(hostname)
+ if host is None:
+ raise MKGeneralException(_('The given host does not exist.'))
host.need_permission("read")
service = html.var("service")