Skip to content

Commit

Permalink
Parse power_supplies output in get_embedded_health
Browse files Browse the repository at this point in the history
  • Loading branch information
seveas committed Nov 1, 2014
1 parent 6804064 commit 03757ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hpilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,17 @@ def _parse_logical_drive(self, element):
data[tag] = elt.get('VALUE')
return data

def _parse_get_embedded_health_data_power_supplies(self, element):
key = element.tag.lower()
ret = {key: {}}
for elt in element:
data = self._element_children_to_dict(elt)
if 'label' in data:
ret[key][data['label']] = data
else:
ret[elt.tag.lower()] = data
return ret

def get_encrypt_settings(self):
"""Get the iLO encryption settings"""
return self._info_tag('RIB_INFO', 'GET_ENCRYPT_SETTINGS')
Expand Down

0 comments on commit 03757ef

Please sign in to comment.