Module: check_mk
Branch: master
Commit: ccc32c35f7c9b965b8abe85a90734694d154bbda
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ccc32c35f7c9b9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 21 12:56:53 2015 +0200
#2599 FIX Fix newly introduced fatal bug preventing creation of new hosts in WATO
This fixes the error message <i>Invalid User Input, Please specify a
hostname</i>.
---
.werks/2599 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/2599 b/.werks/2599
new file mode 100644
index 0000000..38f0b93
--- /dev/null
+++ b/.werks/2599
@@ -0,0 +1,10 @@
+Title: Fix newly introduced fatal bug preventing creation of new hosts in WATO
+Level: 2
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1442832955
+
+This fixes the error message <i>Invalid User Input, Please specify a
hostname</i>.
diff --git a/ChangeLog b/ChangeLog
index 1f5b67a..b9ff5d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -273,6 +273,7 @@
* 2603 FIX: Git integration: Preventing issues with *.mk.new files...
* 2610 FIX: Fixed host search showing results of not permitted folder
* 2611 FIX: Fixed host view permission checks on host related pages...
+ * 2599 FIX: Fix newly introduced fatal bug preventing creation of new hosts in
WATO...
Notifications:
* 2478 Integrated notification plugin for mobile phone push messages via Pushover...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b1f3526..2f0855f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2216,7 +2216,8 @@ def check_new_host_permissions(folder, host, hostname):
config.need_permission("wato.manage_hosts")
check_folder_permissions(folder, "write")
check_user_contactgroups(host.get("contactgroups", (False, [])))
- check_new_hostname("host", hostname)
+ if hostname != None: # otherwise: name not known yet
+ check_new_hostname("host", hostname)
def check_edit_host_permissions(folder, host, hostname):
config.need_permission("wato.edit_hosts")