mirror of
https://opendev.org/x/pyghmi
synced 2026-05-18 12:17:19 +00:00
Avoid using broken UEFI configuration on Purley
Purley has a partial implementation, must avoid trying to use it. Change-Id: I4291f425bf49b746f07d1204fbf89d650d3308b3
This commit is contained in:
@@ -272,8 +272,15 @@ class LenovoFirmwareConfig(object):
|
||||
options = {}
|
||||
data = None
|
||||
rsp = self.xc.grab_redfish_response_with_status(
|
||||
'/redfish/v1/Systems/1/Actions/Oem/LenovoComputerSystem.DSReadFile',
|
||||
{'Action': 'DSReadFile', 'FileName': cfgfilename})
|
||||
'/redfish/v1/Managers/1')
|
||||
if rsp[1] == 200:
|
||||
if 'purley' not in rsp[0].get('Oem', {}).get('Lenovo', {}).get(
|
||||
'release_name', 'purley'):
|
||||
rsp = self.xc.grab_redfish_response_with_status(
|
||||
'/redfish/v1/Systems/1/Actions/Oem/LenovoComputerSystem.DSReadFile',
|
||||
{'Action': 'DSReadFile', 'FileName': cfgfilename})
|
||||
else:
|
||||
rsp = (None, 500)
|
||||
if rsp[1] == 200:
|
||||
data = rsp[0]['Content']
|
||||
data = base64.b64decode(data)
|
||||
|
||||
Reference in New Issue
Block a user