mirror of
https://opendev.org/x/pyghmi
synced 2026-10-01 08:22:07 +00:00
Do not declare 'complete' before the 'mount'.
Do 100% upload, then do complete after the mount call. This avoids software erroneously stopping the upload/mount process. Change-Id: I72af325c9796ceab2ba257f3bed0e42d4814c28d
This commit is contained in:
@@ -1014,7 +1014,8 @@ class XCCClient(IMMClient):
|
||||
self._refresh_token()
|
||||
rsp = json.loads(uploadthread.rsp)
|
||||
if progress:
|
||||
progress({'phase': 'complete'})
|
||||
progress({'phase': 'upload',
|
||||
'progress': 100.0})
|
||||
thepath = rsp['items'][0]['path']
|
||||
thename = rsp['items'][0]['name']
|
||||
writeable = 1 if filename.lower().endswith('.img') else 0
|
||||
@@ -1029,6 +1030,8 @@ class XCCClient(IMMClient):
|
||||
{})
|
||||
if rsp['return'] != 0:
|
||||
raise Exception('Unrecognized return: ' + repr(rsp))
|
||||
if progress:
|
||||
progress({'phase': 'complete'})
|
||||
self.weblogout()
|
||||
|
||||
def update_firmware(self, filename, data=None, progress=None, bank=None):
|
||||
|
||||
Reference in New Issue
Block a user