summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2023-03-27 14:24:29 +0200
committerJose M. Guisado <jguisado@soleta.eu>2023-03-27 15:48:03 +0200
commitc0e14e0c95e4391a783d8b7dc33a19087966db4f (patch)
tree67256681575e320f171c7352b75982aae1d849bd /src
parent0ebcd9f776da9b1a1a5317403a3f60bd93d6ba8a (diff)
live: fix unicast cache error log message
Removes undefined 'repo' variable from error logging message. This caused the traceback to be polluted with an unhelpful message about this variable being undefined. Fixes: 3703fd606 ("live: support native unicast cache image restore")
Diffstat (limited to 'src')
-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 cb8957d..20cedbc 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -134,7 +134,7 @@ class OgLiveOperations:
r = shutil.copy(src, dst)
tip_write_csum(image_name)
except:
- logging.error('Error copying image to cache', repo)
+ logging.error('Error copying image to cache')
raise ValueError(f'Error: Cannot copy image {image_name} to cache')
def _restore_image_unicast(self, repo, name, devpath, cache=False):