Module: check_mk
Branch: master
Commit: 0c73c86ddbac3471515200c68c5a5a5c439ef877
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c73c86ddbac34…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 3 10:20:51 2017 +0100
Fixed activate changes web API call after recent change
Change-Id: Ie052eafedff0ac351ba9f321d5d89fe90d8d0bea
---
web/plugins/webapi/webapi.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 6d81b61..4a8ff22 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -492,6 +492,7 @@ def action_activate_changes(request):
sites = request.get("sites")
changes = ActivateChanges()
+ changes.load()
if changes.has_foreign_changes():
if not config.user.may("wato.activateforeign"):
@@ -507,6 +508,7 @@ def action_activate_changes(request):
manager = ActivateChangesManager()
+ manager.load()
if not manager.has_changes():
raise MKUserError(None, _("Currently there are no changes to
activate."))