app/controllers/katello/api/v2/repositories_controller.rb in katello-3.4.0.2 vs app/controllers/katello/api/v2/repositories_controller.rb in katello-3.4.1
- old
+ new
@@ -364,12 +364,12 @@
end
upload_ids = uploads.map { |upload| upload['id'] }
unit_keys = uploads.map do |upload|
if @repository.file?
- upload.except('id').except('name')
- else
upload.except('id')
+ else
+ upload.except('id').except('name')
end
end
begin
task = send(async ? :async_task : :sync_task, ::Actions::Katello::Repository::ImportUpload,