mirror of https://git.48k.eu/ogclient
live: remove useless check in compute_md5
this never returns -1 on error, an exception is rised insteadmaster
parent
0f167cf29f
commit
fe960010a0
|
@ -710,8 +710,6 @@ class OgLiveOperations:
|
|||
logging.info('*DO NOT REBOOT OR POWEROFF* the client during this time')
|
||||
|
||||
checksum = compute_md5(f'/opt/opengnsys/images/{name}.img')
|
||||
if checksum == -1:
|
||||
raise OgError(f'Cannot access {name}.full.sum file')
|
||||
|
||||
if self._write_md5_file(f'/opt/opengnsys/images/{name}.img', checksum) == -1:
|
||||
raise OgError(f'Cannot write {name}.full.sum file')
|
||||
|
|
Loading…
Reference in New Issue