mirror of
https://opendev.org/x/pyghmi
synced 2025-02-05 05:22:43 +00:00
Handle XCC not sending thermal data in some situations
Treat missing items member as no data to properly move on from this condition Change-Id: I14623e513ec91411978019b088e0f9e36889796b
This commit is contained in:
parent
2a5f9fb7ac
commit
64a40abcc3
@ -1456,7 +1456,7 @@ class XCCClient(IMMClient):
|
||||
therminfo = self.grab_cacheable_json(
|
||||
'/api/dataset/pwrmgmt?params=GetThermalRealTimeData', 1)
|
||||
if therminfo:
|
||||
for name in sorted(therminfo['items'][0]):
|
||||
for name in sorted(therminfo.get('items', [[]])[0]):
|
||||
if 'DIMM' in name and 'Temp' in name:
|
||||
oemsensornames = oemsensornames + (name,)
|
||||
return oemsensornames
|
||||
|
Loading…
x
Reference in New Issue
Block a user