summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Hack <rhack@redhat.com>2014-01-31 14:13:28 +0100
committerRobin Hack <rhack@redhat.com>2014-01-31 14:28:04 +0100
commitac93a05a0f7585cb03bb8a20bee66c423edaaea8 (patch)
tree40ff99d26674cd4f486f4974c433663a4af81adf
parent848c6dc8515df71ae398bf01b3f6ffc251e7617c (diff)
downloadopenlmi-providers-ac93a05a0f7585cb03bb8a20bee66c423edaaea8.tar.gz
openlmi-providers-ac93a05a0f7585cb03bb8a20bee66c423edaaea8.tar.xz
openlmi-providers-ac93a05a0f7585cb03bb8a20bee66c423edaaea8.zip
Hardware: Fix conversion to LMI data format.
-rw-r--r--src/hardware/test/TestHardwareBase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hardware/test/TestHardwareBase.py b/src/hardware/test/TestHardwareBase.py
index 67ec555..a02ec7c 100644
--- a/src/hardware/test/TestHardwareBase.py
+++ b/src/hardware/test/TestHardwareBase.py
@@ -464,7 +464,7 @@ class HardwarePhysicalMemoryTestCase(HardwareTestCase):
for handle in dmidecode_mem_6:
module = dmidecode_mem_6[handle]
- tuples[c] = tuples[c] + (int(module.get("Current Speed", "0 ns").split(" ")[0]))
+ tuples[c] = tuples[c] + (convert(int(module.get("Current Speed", "-1 ns").split(" ")[0])))
empty_output = False
c += 1
# on virtual machines is this "normal" state.