From ce2cb7aa270573b769affc707bb1e572716e8d76 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Tue, 23 Mar 2010 17:40:38 +0100 Subject: [PATCH] Filter out host check if -D specified Signed-off-by: Sven Velt --- nagixsc/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nagixsc/__init__.py b/nagixsc/__init__.py index 54a2125..ba96182 100644 --- a/nagixsc/__init__.py +++ b/nagixsc/__init__.py @@ -306,7 +306,8 @@ def xml_to_dict(xmldoc, verb=0, hostfilter=None, servicefilter=None): else: timestamp = filetimestamp - if retcode and output: + # Append only if no service filter + if not servicefilter and retcode and output: checks.append({'host_name':hostname, 'service_description':None, 'returncode':retcode, 'output':output, 'timestamp':timestamp}) -- 2.30.2