diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index ee757172..79c0dd1c 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -41,6 +41,7 @@ import pyghmi.util.webclient as wc import socket import struct +import weakref inventory.register_inventory_category(cpu) inventory.register_inventory_category(dimm) @@ -127,7 +128,7 @@ class OEMHandler(generic.OEMHandler): # will need to retain data to differentiate # variations. For example System X versus Thinkserver self.oemid = oemid - self.ipmicmd = ipmicmd + self.ipmicmd = weakref.ref(ipmicmd) self._has_megarac = None self.oem_inventory_info = None