Module: check_mk
Branch: master
Commit: 5a24210a8710499a8971de466cccfedf52d0d88e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5a24210a871049…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Oct 10 11:01:46 2016 +0200
fixed typo in activate changes webapi leading to invalid request key validiation
---
web/plugins/webapi/webapi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 47a2b0a..23a068e 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -295,7 +295,7 @@ api_actions["discover_services"] = {
###############
def action_activate_changes(request):
- validate_request_keys(request, ["modes", "sites"])
+ validate_request_keys(request, ["mode", "sites"])
mode = html.var("mode") and html.var("mode") or
"dirty"
if html.var("allow_foreign_changes"):