2
0
mirror of https://opendev.org/x/pyghmi synced 2025-10-26 08:55:20 +00:00

Fix memory health

Mem is an odata dictionary, fix by referencing the correct
element.

Change-Id: I6e90a5f0b689283019a09b4766257f294fbc1402
This commit is contained in:
Jarrod Johnson
2019-07-19 16:02:39 -04:00
parent f26fc5401d
commit 64b6c078d6

View File

@@ -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