during discovery automation
Message-ID: <561f5e4a.O+7yGg7Yv2/0pfZD%lm(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 292dfed197b34f6161dadf7f49a4c434739eaf40
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=292dfed197b34f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 15 10:05:23 2015 +0200
Fixed exception "Argument of type NoneType is not iterable" during discovery
automation
---
modules/discovery.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/discovery.py b/modules/discovery.py
index fa1771c..f5c3057 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -43,7 +43,7 @@ def do_discovery(hostnames, check_types, only_new):
use_caches = False
if not hostnames:
verbose("Discovering services on all hosts:\n")
- hostnames = all_hosts_untagged
+ hostnames = all_active_realhosts()
use_caches = True
else:
verbose("Discovering services on %s:\n" % ",
".join(hostnames))
@@ -141,7 +141,7 @@ def discover_on_host(mode, hostname, do_snmp_scan, use_caches,
on_error="ignore"
"kept" : 0
}
- if hostname not in all_hosts_untagged:
+ if hostname not in all_active_realhosts():
return [0, 0, 0, 0], ""
err = None