Module: check_mk
Branch: master
Commit: 4ea0fea509a83bfbb65b734b2eb9c355400dc53e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ea0fea509a83b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 20 11:36:23 2015 +0100
#2001 FIX Fix exception of missing .site when editing a non-existing host
---
.werks/2001 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 1 +
3 files changed, 12 insertions(+)
diff --git a/.werks/2001 b/.werks/2001
new file mode 100644
index 0000000..466f59e
--- /dev/null
+++ b/.werks/2001
@@ -0,0 +1,10 @@
+Title: Fix exception of missing .site when editing a non-existing host
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1424428557
+
+
diff --git a/ChangeLog b/ChangeLog
index e3bcc7b..c9222f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -241,6 +241,7 @@
* 1976 FIX: Sorting BI rule choice dropdown field entries now
* 1986 FIX: Added nicer error message when calling the rename host page with a non
existant host
* 1987 FIX: Editing auxtags shows existing topics in dropdown instead of as
"create new topic"
+ * 2001 FIX: Fix exception of missing .site when editing a non-existing host
Notifications:
* 1662 notification plugin spectrum: finalized script. now able to handle host
notications
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index bba807a..3d3702e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1986,6 +1986,7 @@ def mode_edithost(phase, new, cluster):
title = _("Create new host")
host = {}
mode = "new"
+ new = True
if phase == "title":
return title