Fix v1 backward compatibility
This commit is contained in:
parent
cf1ec68046
commit
44d06b0c2e
2 changed files with 4 additions and 2 deletions
|
@ -340,7 +340,7 @@ def _write_manifest(namespace, repo_name, manifest):
|
|||
raise ManifestInvalid(detail={'message': 'manifest does not reference any layers'})
|
||||
|
||||
# Store the manifest pointing to the tag.
|
||||
leaf_layer = layers[0]
|
||||
leaf_layer = layers[-1]
|
||||
model.tag.store_tag_manifest(namespace, repo_name, tag_name, leaf_layer.v1_metadata.docker_id,
|
||||
manifest_digest, request.data)
|
||||
|
||||
|
|
Reference in a new issue