Remove recursive image history

We don't need it and it breaks our API for larger manifests
This commit is contained in:
Joseph Schorr 2018-08-24 15:27:13 -04:00
parent 17920d3071
commit bbf9e52a6d

View file

@ -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]