Module: check_mk
Branch: master
Commit: 13ef1117489f13e7a42e369ea5a7394013190a6a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=13ef1117489f13…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 8 17:05:16 2015 +0200
#2191 FIX Fixed handling of URL variable 'mode' in web API for discovering
services
Thanks to Clynt Heikes
---
.werks/2191 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/webapi/webapi.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2191 b/.werks/2191
new file mode 100644
index 0000000..26cb5de
--- /dev/null
+++ b/.werks/2191
@@ -0,0 +1,10 @@
+Title: Fixed handling of URL variable 'mode' in web API for discovering services
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1428505479
+
+Thanks to Clynt Heikes
diff --git a/ChangeLog b/ChangeLog
index 5ef9a8b..b87c608 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -421,6 +421,7 @@
* 2146 FIX: In distributed environments user notification rules trigger a profile
synchronisation now...
* 2158 FIX: Condition column in WATO rule tables has now a flexible width...
* 2160 FIX: Fixed rename of hosts where a host with this name did exist before
+ * 2191 FIX: Fixed handling of URL variable 'mode' in web API for discovering
services...
Notifications:
* 1662 notification plugin spectrum: finalized script. now able to handle host
notications
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 7a447d6..eea3cb9 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -106,7 +106,7 @@ api_actions["delete_host"] = {
###############
def action_discover_services(request):
- mode = html.var("var") and html.var("mode") or "new"
+ mode = html.var("mode") and html.var("mode") or "new"
hostname = request.get("hostname")