Module: check_mk
Branch: master
Commit: c473d3a233e5cc88a0594e9b3ff2eab32bc7c132
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c473d3a233e5cc…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jun 27 11:55:45 2014 +0200
FIX hw/sw inventory: fixed display bug for byte fields with the value 0
There was an exception for fields represented in bytes when the value was set to 0.
---
.werks/946 | 9 +++++++++
ChangeLog | 1 +
web/plugins/views/inventory.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/946 b/.werks/946
new file mode 100644
index 0000000..9a299da
--- /dev/null
+++ b/.werks/946
@@ -0,0 +1,9 @@
+Title: hw/sw inventory: fixed display bug for byte fields with the value 0
+Level: 2
+Component: inv
+Class: fix
+State: unknown
+Version: 1.2.5i5
+Date: 1403862812
+
+There was an exception for fields represented in bytes when the value was set to 0.
diff --git a/ChangeLog b/ChangeLog
index 5028a38..bc14a7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,7 @@
HW/SW-Inventory:
* 0167 FIX: mk_inventory.linux: Changed field separator from pipe to tab...
* 1005 FIX: Fix exception when using pretty-print output format
+ * 0946 FIX: hw/sw inventory: fixed display bug for byte fields with the value 0...
1.2.5i4:
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index 762d116..9d51510 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -501,7 +501,7 @@ def inv_paint_bytes(b):
if b == None:
return "", _("unknown")
elif b == 0:
- return "0"
+ return "number", "0"
units = [ 'B', 'kB', 'MB', 'GB', 'TB' ]
i = 0