Module: check_mk
Branch: master
Commit: d157139ea0112ddcfe6fa2d9768125fe81cab69c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d157139ea0112d…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jul 25 09:44:17 2018 +0200
Fixed another 'return' with argument inside generator
Change-Id: I2ac3a821e6ae81c54e397883719801d731481041
---
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:]: