Merge "[Trivial]Add missing print parameters in log messages"

This commit is contained in:
Zuul 2020-09-03 07:02:35 +00:00 committed by Gerrit Code Review
commit 5126ca0242

View File

@ -181,7 +181,10 @@ class ImagesController(object):
'expire': (expiry - age).total_seconds()})
else:
LOG.debug('Image %(image)s has import task %(task)s in status '
'%(status)s and does not qualify for expiry.')
'%(status)s and does not qualify for expiry.',
{'image': image.image_id,
'task': task.task_id,
'status': task.status})
raise exception.Conflict('Image has active task')
def _cleanup_stale_task_progress(self, image_repo, image, task):