Module: check_mk
Branch: master
Commit: a70fb6da67aa03cb995a36ea61713360ce636166
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a70fb6da67aa03…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 9 17:32:06 2014 +0100
#1752 FIX win_exefiles: handle case gracefully where no size information is available
---
.werks/1752 | 9 +++++++++
ChangeLog | 1 +
inventory/win_exefiles | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/1752 b/.werks/1752
new file mode 100644
index 0000000..aa0cf01
--- /dev/null
+++ b/.werks/1752
@@ -0,0 +1,9 @@
+Title: win_exefiles: handle case gracefully where no size information is available
+Level: 1
+Component: inv
+Compatible: compat
+Version: 1.2.5i7
+Date: 1418142708
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index b21a2c7..7fd6fe9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -301,6 +301,7 @@
* 1452 Solaris HW/SW-Inventory added...
* 1547 FIX: win_cpuinfo: fix case where NumberOfCores is missing (Windows 2003)...
* 1552 FIX: mk_inventory.ps1: fix garbled or missing entries by removing bogus binary
zeroes...
+ * 1752 FIX: win_exefiles: handle case gracefully where no size information is
available
inventory:
* 1516 FIX: win_disks: fix exception in case of empty signature
diff --git a/inventory/win_exefiles b/inventory/win_exefiles
index 5a67862..6d277c2 100644
--- a/inventory/win_exefiles
+++ b/inventory/win_exefiles
@@ -46,7 +46,7 @@ def inv_win_exefiles(info):
"path" : "\\".join(parts[:-1]),
"package_type" : "exe",
"install_date" : install_date,
- "size" : int(size),
+ "size" : saveint(size),
"version" : product_version,
"summary" : description,
"vendor" : product_name,