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]
|
image_data['tags'] = [tag.name for tag in image.tags]
|
||||||
|
|
||||||
if with_history:
|
if with_history:
|
||||||
image_data['history'] = [image_dict(parent, with_history, with_tags)
|
image_data['history'] = [image_dict(parent) for parent in image.parents]
|
||||||
for parent in image.parents]
|
|
||||||
|
|
||||||
# Calculate the ancestors string, with the DBID's replaced with the docker IDs.
|
# 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]
|
parent_docker_ids = [parent_image.docker_image_id for parent_image in image.parents]
|
||||||
|
|
Reference in a new issue