Module: check_mk
Branch: master
Commit: 3825416656f0a06681704b1c5bc90cb0cb881b3c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3825416656f0a0…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Mar 20 10:42:18 2019 +0100
Fixed integration test: test_automation_get_agent_output
Change-Id: Ie24d37ac08576ccc57f2e0cfe5bfb4baa70ea299
---
cmk_base/automations/check_mk.py | 2 +-
cmk_base/modes/check_mk.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index 815514e..b63678c 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -1393,7 +1393,7 @@ class AutomationGetAgentOutput(Automation):
# Optionally show errors of problematic data sources
for source in sources.get_data_sources():
- source_state, source_output, _source_perfdata =
source.get_summary_result()
+ source_state, source_output, _source_perfdata =
source.get_summary_result_for_checking()
if source_state != 0:
success = False
output += "[%s] %s\n" % (source.id(), source_output)
diff --git a/cmk_base/modes/check_mk.py b/cmk_base/modes/check_mk.py
index a9a7931..096ebf2 100644
--- a/cmk_base/modes/check_mk.py
+++ b/cmk_base/modes/check_mk.py
@@ -391,7 +391,7 @@ def mode_dump_agent(hostname):
# Show errors of problematic data sources
has_errors = False
for source in sources.get_data_sources():
- source_state, source_output, _source_perfdata = source.get_summary_result()
+ source_state, source_output, _source_perfdata =
source.get_summary_result_for_checking()
if source_state != 0:
console.error("ERROR [%s]: %s\n" % (source.id(),
source_output))
has_errors = True