Module: check_mk
Branch: master
Commit: 5d0e0f505ddddd2c130b1f64ea437e66f675aef8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5d0e0f505ddddd…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jun 12 11:24:41 2017 +0200
4714 FIX Inventory win_networkadapter: Fixed exception when values were missing
Change-Id: I6c11e0b649389f994bc0f527641482d5fea559b3
---
.werks/4714 | 10 ++++++++++
inventory/win_networkadapter | 3 +++
2 files changed, 13 insertions(+)
diff --git a/.werks/4714 b/.werks/4714
new file mode 100644
index 0000000..db38ba7
--- /dev/null
+++ b/.werks/4714
@@ -0,0 +1,10 @@
+Title: Inventory win_networkadapter: Fixed exception when values were missing
+Level: 1
+Component: inv
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1497259436
+Class: fix
+
+
diff --git a/inventory/win_networkadapter b/inventory/win_networkadapter
index aeaed89..d1ba4cf 100644
--- a/inventory/win_networkadapter
+++ b/inventory/win_networkadapter
@@ -49,6 +49,9 @@ def inv_win_networkadapter(info):
varname = re.sub(" *","", varname)
value = re.sub("^ ", "", value)
+ if not value:
+ continue
+
if first_varname and varname == first_varname:
# Looks like we have a new instance
node.append(array)