mirror of
https://opendev.org/x/pyghmi
synced 2026-01-11 10:42:32 +00:00
Allow fast setting retrieval for Purley
While it must not be used with redfish, it is ok to use the fast path even though setting requires IPMI. Change-Id: I57de25e0ed0bb125adab42916429eca1e29f2392
This commit is contained in:
@@ -271,8 +271,11 @@ class LenovoFirmwareConfig(object):
|
||||
cfgfilename = "config"
|
||||
options = {}
|
||||
data = None
|
||||
rsp = self.xc.grab_redfish_response_with_status(
|
||||
'/redfish/v1/Managers/1')
|
||||
if self.connection:
|
||||
rsp = (None, 200)
|
||||
else:
|
||||
rsp = self.xc.grab_redfish_response_with_status(
|
||||
'/redfish/v1/Managers/1')
|
||||
if rsp[1] == 200:
|
||||
if 'purley' not in rsp[0].get('Oem', {}).get('Lenovo', {}).get(
|
||||
'release_name', 'purley'):
|
||||
|
||||
Reference in New Issue
Block a user