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