Skip to content

Commit 175ab01

Browse files
authored
Merge pull request #298 from MusicDev33/patch-1
Fix for boot options being tuples in iLO 6
2 parents b2f3131 + 4637457 commit 175ab01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hpilo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,10 @@ def get_one_time_boot(self):
12621262
def process(data):
12631263
if 'device' in data['boot_type']:
12641264
data['boot_type'] = data['boot_type']['device']
1265+
1266+
# iLO 6 has brought with it more breaking changes
1267+
if isinstance(data['boot_type'], tuple):
1268+
return data['boot_type']
12651269
return data['boot_type'].lower()
12661270
return self._info_tag('SERVER_INFO', 'GET_ONE_TIME_BOOT', ('ONE_TIME_BOOT', 'GET_ONE_TIME_BOOT'), process=process)
12671271

0 commit comments

Comments
 (0)