Fix support for pulling manifest lists via Docker V1 protocol where applicable
This commit is contained in:
parent
37b20010aa
commit
276d0d571d
6 changed files with 48 additions and 9 deletions
|
@ -27,11 +27,7 @@ def get_tags(namespace_name, repo_name):
|
|||
if repository_ref is None:
|
||||
abort(404)
|
||||
|
||||
# TODO(jschorr): Change this to normalize manifest lists back to their legacy image
|
||||
# (if applicable).
|
||||
tags = registry_model.list_repository_tags(repository_ref, include_legacy_images=True)
|
||||
tag_map = {tag.name: tag.legacy_image.docker_image_id
|
||||
for tag in tags if tag.legacy_image_if_present}
|
||||
tag_map = registry_model.get_legacy_tags_map(repository_ref, storage)
|
||||
return jsonify(tag_map)
|
||||
|
||||
abort(403)
|
||||
|
|
Reference in a new issue