diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 245601ef..00d9b5f4 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -776,14 +776,14 @@ class Command(object): meminfo = self.sysinfo['MemorySummary'] meminfo['Name'] = 'Memory' summary['badreadings'].append(SensorReading(meminfo)) - for adapter in self.sysinfo['PCIeDevices']: - adpinfo = self._do_web_request(adapter['@odata.id']) - if adpinfo['Status']['Health'] not in ('OK', None): - summary['badreadings'].append(SensorReading(adpinfo)) - for fun in self.sysinfo['PCIeFunctions']: - funinfo = self._do_web_request(fun['@odata.id']) - if funinfo['Status']['Health'] not in ('OK', None): - summary['badreadings'].append(SensorReading(funinfo)) + for adapter in self.sysinfo['PCIeDevices']: + adpinfo = self._do_web_request(adapter['@odata.id']) + if adpinfo['Status']['Health'] not in ('OK', None): + summary['badreadings'].append(SensorReading(adpinfo)) + for fun in self.sysinfo['PCIeFunctions']: + funinfo = self._do_web_request(fun['@odata.id']) + if funinfo['Status']['Health'] not in ('OK', None): + summary['badreadings'].append(SensorReading(funinfo)) return summary def _get_biosreg(self, url): diff --git a/pyghmi/redfish/oem/generic.py b/pyghmi/redfish/oem/generic.py index 3a613efd..3a7afd4d 100644 --- a/pyghmi/redfish/oem/generic.py +++ b/pyghmi/redfish/oem/generic.py @@ -31,6 +31,9 @@ class OEMHandler(object): return cachent['contents'] return None + def attach_remote_media(self, url, username, password, vmurls): + return None + def get_description(self): return {}