Module: check_mk
Branch: master
Commit: 0760350feeeac145f377481760af8c5ff2ca1235
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0760350feeeac1…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Jan 12 14:16:06 2017 +0100
fixed params type in discovery function
Change-Id: Ic02b052252909a0ef9a1ce0b26b4a55e5b79abc9
---
checks/local | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/local b/checks/local
index a73f548..c8d9f0d 100644
--- a/checks/local
+++ b/checks/local
@@ -102,7 +102,7 @@ def inventory_local(info):
nodename = line[0]
stripped_line = line[1:]
if len(stripped_line) >= 4 or len(stripped_line) == 3 and stripped_line[0] ==
'P':
- inventory.append( (stripped_line[1], None) )
+ inventory.append( (stripped_line[1], {}) )
else:
raise MKGeneralException("Invalid line in agent section
<<<local>>>: %s" % " ".join(stripped_line))
return inventory