Skip to content

Commit 2cb9c88

Browse files
dralleyhao-yu
andcommitted
Fix "Manifest matching query does not exist" error on import
closes #2041 Co-authored-by: Hao Yu <hyu@redhat.com>
1 parent 5fbdf9c commit 2cb9c88

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGES/2041.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix "Manifest matching query does not exist" error on container repo import.

pulp_container/app/modelresource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ def set_up_queryset(self):
169169
:return: Manifests specific to a specified repo-version.
170170
"""
171171
return ManifestListManifest.objects.filter(
172-
manifest_list__pk__in=self.repo_version.content
172+
manifest_list__pk__in=self.repo_version.content,
173+
image_manifest__pk__in=self.repo_version.content,
173174
).order_by("id")
174175

175176
class Meta:

0 commit comments

Comments
 (0)