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

pull/53173/head
Xander Madsen 6 years ago committed by John R Barker
parent fb4d0d84ec
commit 9f7eb8ee53

@ -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,10 +753,10 @@ 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
return result

Loading…
Cancel
Save