From 37c4eb42c67e54b8bb77d9d78a759d0704c3fbcc Mon Sep 17 00:00:00 2001 From: Allan Vidal Date: Mon, 9 Nov 2015 17:09:12 -0200 Subject: [PATCH] Change DIMM SN parsing in TS to match WebUI Change-Id: Ia506ca9945db98e1facaddc973cf43f2b9dd0f36 --- pyghmi/ipmi/oem/lenovo/dimm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/dimm.py b/pyghmi/ipmi/oem/lenovo/dimm.py index b51f8205..29fbc8f6 100755 --- a/pyghmi/ipmi/oem/lenovo/dimm.py +++ b/pyghmi/ipmi/oem/lenovo/dimm.py @@ -28,7 +28,8 @@ dimm_fields = ( EntryField("capacity_mb", "I", + valuefunc=lambda v: hex(v)[2:]), EntryField("model", "21s"), EntryField("reserved", "h", include=False) )