From 614b3265329b82653caf87abf690ab5bcaca1620 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 2 Jun 2021 12:10:35 -0400 Subject: [PATCH] Update to new form of get gpio command A firmware update changes the reply and has us lose track of a water cooled chassis. Support either form of the reply that may be water cooled. Change-Id: I94e0b411b1d93caa07387339c2a0655f52621daa --- pyghmi/ipmi/oem/lenovo/nextscale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index cf84170b..6f29e92b 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -427,7 +427,7 @@ class SMMClient(object): settings[rule] = {'value': int(ruleinfo.text)} dwc = self.ipmicmd.xraw_command(0x32, 0x94) dwc = bytearray(dwc['data']) - if len(dwc) != 3 or dwc[0] == 1: + if len(dwc) not in (3, 4) or dwc[0] == 1: rsp = self.ipmicmd.xraw_command(0x34, 3) fanmode = self.fanmodes[bytearray(rsp['data'])[0]] settings['fanspeed'] = {