Skip to content

Commit

Permalink
Fixes #33748 - correct input reference on duplicate upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsherrill committed Oct 20, 2021
1 parent 7306fdb commit 3df3b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/actions/pulp3/repository/commit_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def invoke_external_task
duplicate_sha_artifact_list = ::Katello::Pulp3::Api::Core.new(smart_proxy).artifacts_api.list("sha256": input[:sha256])
duplicate_sha_artifact_href = duplicate_sha_artifact_list&.results&.first&.pulp_href
if duplicate_sha_artifact_href
uploads_api.delete(upload_href)
uploads_api.delete(input[:upload_href])
output[:artifact_href] = duplicate_sha_artifact_href
output[:pulp_tasks] = nil
else
Expand Down

0 comments on commit 3df3b3c

Please sign in to comment.