summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 978410f..a5e6045 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -235,7 +235,7 @@ class OgLiveOperations:
if os.access(f'/opt/opengnsys/images', os.R_OK) == False:
raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions')
- logging.warn(f'Checksum validation is *NOT* available with UNICAST-DIRECT!')
+ logging.warning(f'Checksum validation is *NOT* available with UNICAST-DIRECT!')
image_path = f'/opt/opengnsys/images/{name}.img'
self._restore_image(image_path, devpath)
@@ -348,7 +348,7 @@ class OgLiveOperations:
raise OgError(f'Error when running "shell run" subprocess: {e}') from e
if ogRest.proc.returncode != 0:
- logging.warn('Non zero exit code when running: %s', ' '.join(cmds))
+ logging.warning('Non zero exit code when running: %s', ' '.join(cmds))
else:
logging.info('Shell run command OK')