mirror of
https://opendev.org/x/pyghmi
synced 2025-01-31 05:17:39 +00:00
Fix plain rom update of nextscale
When zipfile checks for zip signatures, it does not guarantee seek position at end. Seek to the beginning explicitly after zipfile is done. Change-Id: I13d053576ba12ae7cd668d96179c9f435d0fa751
This commit is contained in:
parent
86845c4e2b
commit
acf837e5ac
@ -712,6 +712,8 @@ class SMMClient(object):
|
||||
if data and hasattr(data, 'read'):
|
||||
if zipfile.is_zipfile(data):
|
||||
z = zipfile.ZipFile(data)
|
||||
else:
|
||||
data.seek(0)
|
||||
elif data is None and zipfile.is_zipfile(filename):
|
||||
z = zipfile.ZipFile(filename)
|
||||
if z:
|
||||
|
Loading…
x
Reference in New Issue
Block a user