Module: check_mk
Branch: master
Commit: 286d8670e101728525d02fbe000e60231c3da20d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=286d8670e10172…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Oct 30 10:50:21 2015 +0100
#1298 FIX Fixed broken WebAPI
The WebAPI was broken due to a Typo. It was not possible to edit or add hosts.
---
.werks/1298 | 11 +++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1298 b/.werks/1298
new file mode 100644
index 0000000..55bd9f5
--- /dev/null
+++ b/.werks/1298
@@ -0,0 +1,11 @@
+Title: Fixed broken WebAPI
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1446198542
+
+The WebAPI was broken due to a Typo. It was not possible to edit or add hosts.
+
diff --git a/ChangeLog b/ChangeLog
index 12497f6..4ecd5f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -44,6 +44,7 @@
WATO:
* 2666 FIX: Fix search for global configuration variables: ignore case now
* 2715 FIX: Fixed visibility of BI aggregations in editor
+ * 1298 FIX: Fixed broken WebAPI...
HW/SW-Inventory:
* 2436 NetApp monitoring: Now able to gather data for inventory...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 66164e0..2de4314 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -19307,7 +19307,7 @@ def activate_changes():
# Checks if the given host_tags are all in known host tag groups and have a valid value
def check_host_tags(host_tags):
for key, value in host_tags.items():
- for group_entry in configured_host_tags:
+ for group_entry in configured_host_tags():
if group_entry[0] == key:
for value_entry in group_entry[2]:
if value_entry[0] == value: