From 64b6c078d672484486904a39ce7f13c2b99ee0f7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 19 Jul 2019 16:02:39 -0400 Subject: [PATCH] Fix memory health Mem is an odata dictionary, fix by referencing the correct element. Change-Id: I6e90a5f0b689283019a09b4766257f294fbc1402 --- pyghmi/redfish/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 04521675..3508942d 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -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