Add additional logging for missing parent images
This commit is contained in:
parent
606b08906c
commit
bbaee0d3f2
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ def get_parent_images(namespace_name, repository_name, image_obj):
|
|||
id_to_image = {unicode(image.id): image for image in parents}
|
||||
try:
|
||||
return [id_to_image[parent_id] for parent_id in reversed(parent_db_ids)]
|
||||
except KeyError:
|
||||
except KeyError as ke:
|
||||
logger.exception('Could not find an expected parent image for image %s', image_obj.id)
|
||||
raise DataModelException('Unknown parent image')
|
||||
|
||||
|
||||
|
|
Reference in a new issue