Module: check_mk
Branch: master
Commit: b619edac5057d7c7b571858b91d7064c3837d941
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b619edac5057d7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 21 13:13:59 2014 +0100
#1516 FIX win_disks: fix exception in case of empty signature
---
.werks/1516 | 9 +++++++++
ChangeLog | 3 +++
inventory/win_disks | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1516 b/.werks/1516
new file mode 100644
index 0000000..9469fc0
--- /dev/null
+++ b/.werks/1516
@@ -0,0 +1,9 @@
+Title: win_disks: fix exception in case of empty signature
+Level: 1
+Component: inventory
+Compatible: compat
+Version: 1.2.5i7
+Date: 1416572007
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 86433f9..841fb89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -92,6 +92,9 @@
* 1479 liveproxyd: new function for collecting remote inventory data...
NOTE: Please refer to the migration notes!
+ inventory:
+ * 1516 FIX: win_disks: fix exception in case of empty signature
+
1.2.5i6:
Core & Setup:
diff --git a/inventory/win_disks b/inventory/win_disks
index e056500..4970379 100644
--- a/inventory/win_disks
+++ b/inventory/win_disks
@@ -77,7 +77,7 @@ def inv_win_disks(info):
array["size"] = int(value)
elif varname == "MediaType":
array["type"] = value
- elif varname == "Signature":
+ elif varname == "Signature" and value != '':
array["signature"] = int(value)
array["local"] = True
node.append(array)