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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user