Resolved conflicts with mistaken commits in earlier history (#52953)

This commit is contained in:
Xander Madsen 2019-03-01 05:11:46 -05:00 committed by John R Barker
parent fb4d0d84ec
commit 9f7eb8ee53

View file

@ -734,11 +734,10 @@ class RedfishUtils(object):
fan_results = []
key = "Thermal"
# Get these entries, but does not fail if not found
properties = ['FanName', 'Reading', 'Status']
properties = ['FanName', 'Reading', 'ReadingUnits', 'Status']
# Go through list
for chassis_uri in self.chassis_uri_list:
fan = {}
response = self.get_request(self.root_uri + chassis_uri)
if response['ret'] is False:
return response
@ -754,12 +753,12 @@ class RedfishUtils(object):
data = response['data']
for device in data[u'Fans']:
fan = {}
for property in properties:
if property in device:
fan[property] = device[property]
fan_results.append(fan)
result["entries"] = fan_results
result["entries"] = fan_results
return result
def get_cpu_inventory(self):