Fix issue accessing a null tagmanifest under a tag in a repository
This commit is contained in:
parent
cf8e71f1e8
commit
c34eacb4fa
4 changed files with 41 additions and 2 deletions
|
@ -160,7 +160,8 @@ class PreOCIModel(RepositoryDataInterface):
|
|||
|
||||
return ImageRepositoryRepository(base, [
|
||||
Tag(tag.name, tag.image.docker_image_id, tag.image.aggregate_size, tag.lifetime_start_ts,
|
||||
tag.tagmanifest.digest, tag.lifetime_end_ts) for tag in tags
|
||||
tag.tagmanifest.digest if hasattr(tag, 'tagmanifest') else None,
|
||||
tag.lifetime_end_ts) for tag in tags
|
||||
], [Count(count.date, count.count) for count in counts], repo.badge_token, repo.trust_enabled)
|
||||
|
||||
|
||||
|
|
Reference in a new issue