app/lib/actions/pulp3/repository/copy_content.rb in katello-3.17.0.rc2.2 vs app/lib/actions/pulp3/repository/copy_content.rb in katello-3.17.0

- old
+ new

@@ -9,10 +9,15 @@ end def invoke_external_task source = ::Katello::Repository.find(input[:source_repository_id]) target = ::Katello::Repository.find(input[:target_repository_id] || input[:target_repository]) - output[:pulp_tasks] = target.backend_service(smart_proxy).copy_content_for_source(source, input) + service = target.backend_service(smart_proxy) + output[:pulp_tasks] = if input[:copy_all] + service.copy_all(source) + else + service.copy_content_for_source(source, input) + end end end end end end