parent
96d358f526
commit
3d542b5e93
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ def _get_parent_images(namespace_name, repository_name, image_obj, include_place
|
|||
filter_to_parents)
|
||||
|
||||
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:
|
||||
raise DataModelException('Unknown parent image')
|
||||
|
||||
|
||||
def get_repo_image(namespace_name, repository_name, docker_image_id):
|
||||
|
|
Reference in a new issue