From bbf9e52a6d83d9f3f8fb7d7a5ba7a2a5d3982921 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 24 Aug 2018 15:27:13 -0400 Subject: [PATCH] Remove recursive image history We don't need it and it breaks our API for larger manifests --- endpoints/api/image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/endpoints/api/image.py b/endpoints/api/image.py index 53c4bf68b..9fb3c5c92 100644 --- a/endpoints/api/image.py +++ b/endpoints/api/image.py @@ -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]