Allow lookup of "dead" manifests so manifest links can be clicked in the tag history

Fixes https://jira.coreos.com/browse/QUAY-1021
This commit is contained in:
Joseph Schorr 2018-08-09 16:05:10 -04:00
parent f6902f8096
commit 590f8f65a3
2 changed files with 16 additions and 11 deletions

View file

@ -41,7 +41,8 @@ class ManifestLabelPreOCI(ManifestLabelInterface):
def get_repository_manifest(self, namespace_name, repository_name, digest):
try:
tag_manifest = model.tag.load_manifest_by_digest(namespace_name, repository_name, digest)
tag_manifest = model.tag.load_manifest_by_digest(namespace_name, repository_name, digest,
allow_dead=True)
except model.DataModelException:
return None