Module: check_mk
Branch: master
Commit: 035631855843906ec25c7824dccc1b6e649adb9c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03563185584390…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 19 10:55:17 2018 +0200
fileinfo: Fixed SyntaxError: 'return' with argument inside generator
Change-Id: I0f30d3be667b6f7ab60effa2a5b0e3957630cd3f
---
checks/fileinfo | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/fileinfo b/checks/fileinfo
index 5c7b2a8..2e1d3b3 100644
--- a/checks/fileinfo
+++ b/checks/fileinfo
@@ -335,7 +335,8 @@ def check_fileinfo_groups(_item, params, parsed):
reftime = parsed.get('reftime')
if reftime is None:
- return 3, "Missing reference timestamp"
+ yield 3, "Missing reference timestamp"
+ return
# Old format does not support '%s' in group name
group_patterns = set(params.get('precompiled_patterns', []))