2
0
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:
Jarrod Johnson
2018-05-16 16:53:37 -04:00
parent 6c37f63ab8
commit e21fdbf1f3

View File

@@ -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'})