summaryrefslogtreecommitdiffstats
path: root/src/live/ogOperations.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-09 12:22:17 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-09 12:23:00 +0200
commit084650e4b1650386d55a2c14f17c745c3fcb913f (patch)
tree89532997d1786aec3c465e6fafc0facdd28519a4 /src/live/ogOperations.py
parent05b7a576b07522876633f2cecab4556be5823566 (diff)
live: use correct variable name in restore unicast cachev1.3.2-18
fe40f9c5 ('src: add POST cache/fetch method') broke unicast cache restore. (2024-09-09 10:05:22) ogClient: [ERROR] - name 'image_name' is not defined Traceback (most recent call last): File "/opt/opengnsys/ogClient/src/ogRest.py", line 175, in image_restore payload = ogRest.operations.image_restore(request, ogRest) File "/opt/opengnsys/ogClient/src/live/ogOperations.py", line 520, in image_restore self._restore_image_unicast(repo, name, partdev, cache) File "/opt/opengnsys/ogClient/src/live/ogOperations.py", line 242, in _restore_image_unicast image_path = f'{OG_CACHE_IMAGE_PATH}{image_name}.img' NameError: name 'image_name' is not defined
Diffstat (limited to 'src/live/ogOperations.py')
-rw-r--r--src/live/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 0a2232b..010af05 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -239,7 +239,7 @@ class OgLiveOperations:
if cache:
self._fetch_image_unicast(repo, name)
- image_path = f'{OG_CACHE_IMAGE_PATH}{image_name}.img'
+ image_path = f'{OG_CACHE_IMAGE_PATH}{name}.img'
else:
if os.access(f'/opt/opengnsys/images', os.R_OK) == False:
raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions')