Module: check_mk
Branch: master
Commit: 93fdc236b3769a5b10f375bc3451043c778e6bcd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=93fdc236b3769a…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Nov 8 15:05:18 2017 +0100
df: Reduce return points of inventory function to one
Change-Id: I9eefbb2c61a5626817a73c9f5877252a80491d9c
---
checks/df | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/df b/checks/df
index cd6fabe..e3384bc 100644
--- a/checks/df
+++ b/checks/df
@@ -211,9 +211,9 @@ def inventory_df(parsed):
inventory.append((item, params))
else:
inventory.append(entry)
- return inventory
else:
- return df_inventory(mplist)
+ inventory = df_inventory(mplist)
+ return inventory
def check_df(item, params, parsed):