Module: check_mk
Branch: master
Commit: e31403a205d5ffdf1a5885b03233b88d0e4e8d3c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e31403a205d5ff…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Mar 27 09:47:28 2019 +0100
fixed integration test
Change-Id: I7482f3846597a8dce41351ad7687cdd55988348d
---
cmk_base/automations/check_mk.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index 9c4d799..ae5a316 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -116,8 +116,10 @@ class AutomationDiscovery(DiscoveryAutomation):
for hostname in hostnames:
result, error = discovery.discover_on_host(how, hostname, do_snmp_scan,
use_caches,
on_error)
- counts[hostname] = result["self_new"],
result["self_removed"], result[
- "self_kept"], result["self_total"]
+ counts[hostname] = [
+ result["self_new"], result["self_removed"],
result["self_kept"],
+ result["self_total"]
+ ]
if error is not None:
failed_hosts[hostname] = error