Remove recursive image history
We don't need it and it breaks our API for larger manifests
This commit is contained in:
parent
17920d3071
commit
bbf9e52a6d
1 changed files with 1 additions and 2 deletions
|
@ -22,8 +22,7 @@ def image_dict(image, with_history=False, with_tags=False):
|
|||
image_data['tags'] = [tag.name for tag in image.tags]
|
||||
|
||||
if with_history:
|
||||
image_data['history'] = [image_dict(parent, with_history, with_tags)
|
||||
for parent in image.parents]
|
||||
image_data['history'] = [image_dict(parent) for parent in image.parents]
|
||||
|
||||
# Calculate the ancestors string, with the DBID's replaced with the docker IDs.
|
||||
parent_docker_ids = [parent_image.docker_image_id for parent_image in image.parents]
|
||||
|
|
Reference in a new issue