Module: check_mk
Branch: master
Commit: 0c5810b9b8ad8190d46626c08e2db04cfce9c59f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c5810b9b8ad81…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jul 24 15:23:50 2018 +0200
Fixed SyntaxError: 'return' with argument inside generator
Change-Id: Ib4dee20c795894d38671e31e94a1b5c62054b2c3
---
checks/fileinfo | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/fileinfo b/checks/fileinfo
index 030e0c9..8c2f639 100644
--- a/checks/fileinfo
+++ b/checks/fileinfo
@@ -238,7 +238,8 @@ def check_fileinfo_groups(item, params, info):
try:
reftime = int(info[0][0])
except (IndexError, ValueError):
- return 3, "Missing reference timestamp"
+ yield 3, "Missing reference timestamp"
+ return
# Start counting values on all files
for line in info[1:]: