Skip to content

Commit

Permalink
Ensure the manifest for the queried signature is in the queries repo.
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
ipanova committed Feb 15, 2022
1 parent 3ac9203 commit 13afc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_container/app/registry_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def get(self, request, path, pk):
_, _, repository_version = self.get_drv_pull(path)

try:
manifest = models.Manifest.objects.get(digest=pk)
manifest = models.Manifest.objects.get(digest=pk, pk__in=repository_version.content)
except models.Manifest.DoesNotExist:
raise ManifestNotFound(reference=pk)

Expand Down

0 comments on commit 13afc44

Please sign in to comment.