mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
Error on invalid signature
Provide a more informative error when faced with an invalid firmware signature on upload. Change-Id: Ifdc6ae546270509e80c260584951427396b7230e
This commit is contained in:
parent
e21fdbf1f3
commit
4404b537fd
@ -426,6 +426,8 @@ class SMMClient(object):
|
||||
if rsp.status != 200:
|
||||
raise Exception('Error applying firmware')
|
||||
progdata = fromstring(progdata)
|
||||
if progdata.findall('fwUpdate')[0].text == 'invalid signature':
|
||||
raise Exception('Firmware signature invalid')
|
||||
percent = float(progdata.findall('fwProgress')[0].text)
|
||||
|
||||
progress({'phase': 'apply',
|
||||
|
Loading…
x
Reference in New Issue
Block a user