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")
more_events
Jose M. Guisado 2023-03-27 14:24:29 +02:00
parent 0ebcd9f776
commit c0e14e0c95
1 changed files with 1 additions and 1 deletions

View File

@ -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):