2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-08 09:40:15 +00:00

Adapt for alternate type presented in devicedescription

Change-Id: I027bfa8509f96acc07febef89a7c6e7edcbd92fc
This commit is contained in:
Jarrod Johnson
2026-01-27 11:48:54 -05:00
parent 8ccf30f54b
commit edc032323c
+1 -1
View File
@@ -56,7 +56,7 @@ def get_handler(sysinfo, sysurl, webclient, cache, cmd, rootinfo={}):
try:
devdesc = webclient.grab_json_response_with_status('/DeviceDescription.json')
if devdesc[1] == 200:
if devdesc[0]['type'].lower() == 'lenovo-smm3':
if devdesc[0]['type'].lower() in ('lenovo-smm3', 'smm3'):
return smm3.OEMHandler(sysinfo, sysurl, webclient, cache, gpool=cmd._gpool)
except Exception:
pass