Module: check_mk
Branch: master
Commit: 03c063a1e9a9b887235587938ee65b030bda4b73
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03c063a1e9a9b8…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Feb 8 10:46:04 2017 +0100
minor cleanup
Change-Id: I3d613d35c2888a20027174802b6503455347857f
---
inventory/win_disks | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/inventory/win_disks b/inventory/win_disks
index 05e7627..4e5b4fb 100644
--- a/inventory/win_disks
+++ b/inventory/win_disks
@@ -79,20 +79,25 @@ def inv_win_disks(info):
if varname == "Manufacturer":
array["vendor"] = value
+
elif varname == "InterfaceType":
array["bus"] = value
+
elif varname == "Model":
array["product"] = value
+
elif varname == "Name":
array["fsnode"] = value
+
elif varname == "SerialNumber":
array["serial"] = value
- elif varname == "Size":
- if value != "":
- array["size"] = int(value)
- elif varname == "MediaType":
- if value != "":
- array["type"] = value
+
+ elif varname == "Size" and value != "":
+ array["size"] = int(value)
+
+ elif varname == "MediaType" and value != "":
+ array["type"] = value
+
elif varname == "Signature":
if value != "":
array["signature"] = int(value)