Module: check_mk
Branch: master
Commit: 60b620e5887b6526aeca78f22243e3a231a5c31f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60b620e5887b65…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Aug 22 15:01:29 2017 +0200
4855 FIX Web-API Hosttags: add_hosttags no longer raises an exception when the
configuration_hash key is missing
Change-Id: I17df3f71ba8e28327d2b76360180f709e59a296a
---
.werks/4855 | 10 ++++++++++
web/plugins/webapi/webapi.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4855 b/.werks/4855
new file mode 100644
index 0000000..2b0e4b7
--- /dev/null
+++ b/.werks/4855
@@ -0,0 +1,10 @@
+Title: Web-API Hosttags: add_hosttags no longer raises an exception when the
configuration_hash key is missing
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1503406852
+Class: fix
+
+
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 5a042b9..63ee4d5 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -812,7 +812,7 @@ class APICallHosttags(APICallCollection):
hosttags_dict = hosttags_config.get_dict_format()
if "configuration_hash" in request:
validate_config_hash(request["configuration_hash"], hosttags_dict)
- del request["configuration_hash"]
+ del request["configuration_hash"]
# Check for conflicts with existing configuration
# Tags may be either specified grouped in a host/folder configuration, e.g
agent/cmk-agent,