From 2963ecf4669ac33e43394a54d397acf5124c9cda Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 7 Dec 2016 14:25:50 -0500 Subject: [PATCH] Correct offset of a capability bit Specification has corrected an internal bit offset, so our implementation must adapt. Change-Id: I62cf562cfd80b0bc680f41881bf64e421f503432 --- pyghmi/ipmi/oem/lenovo/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index 1d97221c..d7b757a1 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -494,7 +494,7 @@ class OEMHandler(generic.OEMHandler): self._hasimm = False return False rdata = bytearray(bdata['data'][:]) - self._hasimm = (rdata[1] & 1 == 1) or (rdata[1] & 16 == 16) + self._hasimm = (rdata[1] & 1 == 1) or (rdata[1] & 8 == 8) return self._hasimm def get_oem_firmware(self, bmcver):