diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-05 08:40:55 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-05 08:40:55 +0200 |
commit | fe960010a06471eefc2ffebc1d8bbd06f09b98c4 (patch) | |
tree | fae6bd26f2d0faf01f9a0af7d3087678ffb59c4a /src | |
parent | 0f167cf29fd51b9e95146c4e93dd0f046e82de44 (diff) |
live: remove useless check in compute_md5
this never returns -1 on error, an exception is rised instead
Diffstat (limited to 'src')
-rw-r--r-- | src/live/ogOperations.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index f1478c3..f02a54b 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -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') |