From 8106eed782da7ff39ec0c2dc760ce53a5ef504c6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 30 Jan 2025 10:04:59 -0500 Subject: [PATCH] Fix coordinate calculation for XCC3 in new DWC chassis Change-Id: Ic4f9836b50f584d1616a3b2a9e9b9849cf7a5386 --- pyghmi/redfish/oem/lenovo/xcc3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/oem/lenovo/xcc3.py b/pyghmi/redfish/oem/lenovo/xcc3.py index 6d1c0502..075c2181 100644 --- a/pyghmi/redfish/oem/lenovo/xcc3.py +++ b/pyghmi/redfish/oem/lenovo/xcc3.py @@ -327,7 +327,7 @@ class OEMHandler(generic.OEMHandler): try: slot = chassis['Location']['PartLocation']['LocationOrdinalValue'] slotnum = (2 * (slot >> 4) - 1) + ((slot & 15) % 10) - slotcoord = [slot >> 4, (slot & 15 - 9)] + slotcoord = [slot >> 4, (slot & 15) - 9] return {'slot': slotnum, 'slotlabel': '{:02x}'.format(slot), 'slotcoord': slotcoord} except KeyError: continue