Module: check_mk
Branch: master
Commit: 58606ca395eb2162aa8e2b005e18f32c7b2ab1df
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=58606ca395eb21…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 26 15:28:41 2018 +0100
Fixed remote site activation after 45d73f79
Change-Id: I3ee6f34930d5899526ec82f9df3ebba779cbd7b0
---
cmk/gui/wato/pages/automation.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/wato/pages/automation.py b/cmk/gui/wato/pages/automation.py
index 908715f..d458d03 100644
--- a/cmk/gui/wato/pages/automation.py
+++ b/cmk/gui/wato/pages/automation.py
@@ -163,7 +163,8 @@ class ModeAutomation(WatoWebApiMode):
def _execute_automation_command(self, automation_command):
try:
# Don't use write_text() here (not needed, because no HTML document is
rendered)
- html.write(repr(automation_command().execute()))
+ automation = automation_command()
+ html.write(repr(automation.execute(automation.get_request())))
except Exception as e:
logger.exception()
if config.debug: