Module: check_mk
Branch: master
Commit: ae3fcd7c3a476b4e476f9a369f9cc82ac7be2e7e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ae3fcd7c3a476b…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri Nov 4 11:37:09 2016 +0100
made functions more understandable
---
checks/diskstat | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/checks/diskstat b/checks/diskstat
index 229bf4a..981e358 100644
--- a/checks/diskstat
+++ b/checks/diskstat
@@ -292,9 +292,9 @@ def diskstat_extract_name_info(info):
return timestamp, info_plain, name_info
-def diskstat_convert_info(info):
- disks, multipath_info = info
- converted_disks = dict(disks.items()) # we must not mody info!
+def diskstat_convert_info(parsed):
+ disks, multipath_info = parsed
+ converted_disks = dict(disks.items()) # we must not modify info!
# If we have information about multipathing, then remove the
# physical path devices from the disks array. But only do this,
@@ -322,8 +322,8 @@ def diskstat_convert_info(info):
return converted_disks
-def inventory_diskstat(info):
- converted_disks = diskstat_convert_info(info)
+def inventory_diskstat(parsed):
+ converted_disks = diskstat_convert_info(parsed)
# Use generic diskstat inventory function that is used also for other
# Disk IO checks. That expects a table of (node, device, ...)