Module: check_mk
Branch: master
Commit: 8eb03d2608662e01ef47f5029c34b3a2b57b161b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8eb03d2608662e…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Mon Jul 16 13:21:48 2018 +0200
solaris_mem: Fix: parse function now allways returns a dict.
Change-Id: I4770b95246b6f47f69f7c0ef614079c7e6bbf6ee
---
checks/solaris_mem | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/solaris_mem b/checks/solaris_mem
index 2c2bb3a..5fc402e 100644
--- a/checks/solaris_mem
+++ b/checks/solaris_mem
@@ -42,7 +42,7 @@
def parse_solaris_mem(info):
# The 1.2.4 agent seems to create an empty section under some circumstances
if not info:
- return
+ return {}
values = []
mem_tokens = " ".join(info[0][1:]).split(",")