Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #862/e6184921 backport][2.11] Fixed upload does not exist error during image push operation. #870

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/861.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed upload does not exist error during image push operation.
2 changes: 1 addition & 1 deletion pulp_container/app/registry_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def put(self, request, path, pk=None):
# Upload has been deleted => task has started or even finished
task = Task.objects.filter(
name__endswith="add_and_remove",
reserved_resources_record=[f"upload:{pk}"],
reserved_resources_record__contains=[f"shared:upload:{pk}"],
).last()
if not task:
# No upload and no task for it => the upload probably never existed
Expand Down