From da7796b51821921a91e4daaa10e2ecaaa3fd72f1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 12 Feb 2024 08:46:11 -0500 Subject: [PATCH] Catch more XCC variants Some XCCs rename a property to a different name. Change-Id: I2ad278c5a99477d0aab01f4e71862196f96998fc --- MANIFEST.in | 1 + pyghmi/redfish/oem/lenovo/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index c978a52d..8d3d1072 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include AUTHORS +include LICENSE include ChangeLog exclude .gitignore exclude .gitreview diff --git a/pyghmi/redfish/oem/lenovo/main.py b/pyghmi/redfish/oem/lenovo/main.py index 8d1d0d79..1d4c23f0 100644 --- a/pyghmi/redfish/oem/lenovo/main.py +++ b/pyghmi/redfish/oem/lenovo/main.py @@ -23,7 +23,7 @@ def get_handler(sysinfo, sysurl, webclient, cache, cmd): bmcinfo = cmd.bmcinfo if 'Ami' in bmcinfo.get('Oem', {}): return tsma.TsmHandler(sysinfo, sysurl, webclient, cache) - if 'FrontPanelUSB' in leninf or sysinfo.get('SKU', '').startswith('7X58'): + if 'FrontPanelUSB' in leninf or 'USBManagementPortAssignment' in leninf or sysinfo.get('SKU', '').startswith('7X58'): return xcc.OEMHandler(sysinfo, sysurl, webclient, cache, gpool=cmd._gpool) else: