mirror of
https://opendev.org/x/pyghmi
synced 2026-01-10 02:02:30 +00:00
Fix SMM updates on newer SMM firmware versions
Must explicitly declare the type of firmware now, accomodate that with the request. Older SMMs will return error that we will ignore. Change-Id: I8911da94ccbfc5447c2d4902cbbcbd48c87605cf
This commit is contained in:
@@ -400,6 +400,9 @@ class SMMClient(object):
|
||||
break
|
||||
progress({'phase': 'upload', 'progress': 0.0})
|
||||
url = self.wc # this is just to get self.st1 initted
|
||||
self.wc.request('POST', '/data', 'set=fwType:10') # SMM firmware
|
||||
rsp = self.wc.getresponse()
|
||||
rsp.read()
|
||||
url = '/fwupload/fwupload.esp?ST1={0}'.format(self.st1)
|
||||
self.wc.upload(url, filename, data, formname='fileUpload',
|
||||
otherfields={'preConfig': 'on'})
|
||||
|
||||
Reference in New Issue
Block a user