Module: check_mk
Branch: master
Commit: 39a4ccd8be7b599c154a6a25aa3f07b9a5cff98e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=39a4ccd8be7b59…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed May 20 17:52:56 2015 +0200
Minor code cleanup
---
checks/checkpoint_packets | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/checkpoint_packets b/checks/checkpoint_packets
index 73e9dad..d487629 100644
--- a/checks/checkpoint_packets
+++ b/checks/checkpoint_packets
@@ -38,11 +38,11 @@ factory_settings["checkpoint_packets_default_levels"] = {
}
def inventory_checkpoint_packets(info):
- if len(info[0]) == 4:
- return [ (None, "checkpoint_packets_default_levels" ) ]
+ if info:
+ return [ (None, {}) ]
-def check_checkpoint_packets(item, params, info):
- if info and len(info[0]) == 4:
+def check_checkpoint_packets(_no_item, params, info):
+ if info:
value = {}
value["accepted"] = int(info[0][0])
value["rejected"] = int(info[0][1])