From 3033152f539d8bca7c1f7dfe8f70df81d809a67f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 4 Jan 2018 15:06:25 -0500 Subject: [PATCH] Add IBM FPC id IBM FPCs should be treated by the same spec as Lenovo Change-Id: Ie2a922f0989225701e38c7178d5c93ad168b7739 --- pyghmi/ipmi/oem/lenovo/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index fdfd540e..b5256bff 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -330,11 +330,11 @@ class OEMHandler(generic.OEMHandler): def is_fpc(self): """True if the target is a Lenovo nextscale fan power controller """ - fpc_id = (19046, 32, 1063) + fpc_ids = ((19046, 32, 1063), (20301, 32, 462)) smm_id = (19046, 32, 1180) currid = (self.oemid['manufacturer_id'], self.oemid['device_id'], self.oemid['product_id']) - if currid == fpc_id: + if currid in fpc_ids: self._fpc_variant = 6 elif currid == smm_id: self._fpc_variant = 2