Don't return images if a tag does not have a legacy image
This commit is contained in:
parent
e972e4088b
commit
c079add0df
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue