diff --git a/CHANGES/861.bugfix b/CHANGES/861.bugfix new file mode 100644 index 000000000..d94977b9e --- /dev/null +++ b/CHANGES/861.bugfix @@ -0,0 +1 @@ +Fixed upload does not exist error during image push operation. diff --git a/pulp_container/app/registry_api.py b/pulp_container/app/registry_api.py index a0383b5e1..979976e6e 100644 --- a/pulp_container/app/registry_api.py +++ b/pulp_container/app/registry_api.py @@ -680,7 +680,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