Don't return images if a tag does not have a legacy image

This commit is contained in:
Joseph Schorr 2018-11-19 23:33:37 +02:00
parent e972e4088b
commit c079add0df

View file

@ -227,6 +227,9 @@ class RepositoryTagImages(RepositoryParamResource):
if tag_ref is None:
raise NotFound()
if tag_ref.legacy_image_if_present is None:
return {'images': []}
image_id = tag_ref.legacy_image.docker_image_id
all_images = None