From c0e14e0c95e4391a783d8b7dc33a19087966db4f Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Mon, 27 Mar 2023 14:24:29 +0200 Subject: 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") --- src/live/ogOperations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.2.3-18-g5258