mirror of
https://opendev.org/x/pyghmi
synced 2025-10-26 17:05:30 +00:00
Fix memory health
Mem is an odata dictionary, fix by referencing the correct element. Change-Id: I6e90a5f0b689283019a09b4766257f294fbc1402
This commit is contained in:
@@ -768,7 +768,7 @@ class Command(object):
|
||||
dimmfound = False
|
||||
for mem in self._do_web_request(
|
||||
self.sysinfo['Memory']['@odata.id'])['Members']:
|
||||
dimminfo = self._do_web_request(mem)
|
||||
dimminfo = self._do_web_request(mem['@odata.id'])
|
||||
if dimminfo['Status']['Health'] not in ('OK', None):
|
||||
summary['badreadings'].append(SensorReading(dimminfo))
|
||||
dimmfound = True
|
||||
|
||||
Reference in New Issue
Block a user