From 213e5f64d870f3aac84a97dce92bc3a8ad9a3e84 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 8 Jun 2021 09:33:45 -0400 Subject: [PATCH] Fix PSU fan count for 9-PSU chasssis Only 6 out of the 9 fans were previously reported, use the get_psu_count function to accurately get the number of PSUs in chassis. Change-Id: I3e227b67f928b9a2c0d82ce119a143ad0d38b040 --- 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 305e3944..b02ce7ae 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -228,7 +228,7 @@ fpc_sensors = { 'type': 'Fan', 'units': 'RPM', 'provider': fpc_read_psu_fan, - 'elements': 1, + 'elementsfun': get_psu_count, }, 'Total Power Capacity': { 'type': 'Power',