Module: check_mk
Branch: master
Commit: 76a02e7529b91edae763d5097cdb4e1a3c143e18
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=76a02e7529b91e…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 11 10:10:00 2018 +0200
6076 FIX lnx_bonding: Fixed item name which had a leading './'
Change-Id: Iae0d732a18b1070e5b471a74ade5b95da0e11ef1
---
.werks/6076 | 10 ++++++++++
checks/lnx_bonding | 1 +
2 files changed, 11 insertions(+)
diff --git a/.werks/6076 b/.werks/6076
new file mode 100644
index 0000000..a21fcf6
--- /dev/null
+++ b/.werks/6076
@@ -0,0 +1,10 @@
+Title: lnx_bonding: Fixed item name which had a leading './'
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1526026133
+Class: fix
+
+
diff --git a/checks/lnx_bonding b/checks/lnx_bonding
index 810aadf..54acf82 100644
--- a/checks/lnx_bonding
+++ b/checks/lnx_bonding
@@ -107,6 +107,7 @@ def parse_lnx_bonding(info):
# Now convert to generic dict, also used by other bonding checks
converted = {}
for bond, status in bonds.items():
+ bond = bond.lstrip("./")
interfaces = {}
for eth, ethstatus in status["interfaces"].items():
interfaces[eth] = {