Fix v1 backward compatibility

This commit is contained in:
Jake Moshenko 2015-11-12 16:22:19 -05:00
parent cf1ec68046
commit 44d06b0c2e
2 changed files with 4 additions and 2 deletions

View file

@ -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)