[Trivial]Add missing print parameters in log messages

This is to add missing print parameters in log message.

Change-Id: I300a3f19a0dfacb23903ac3e92571855ed32cd83
This commit is contained in:
zhufl 2020-08-28 15:58:40 +08:00
parent 0260ab5922
commit 179d111c1f

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')
@utils.mutating