app/lib/actions/pulp3/capsule_content/sync.rb in katello-3.16.0 vs app/lib/actions/pulp3/capsule_content/sync.rb in katello-3.16.1

- old
+ new

@@ -9,10 +9,12 @@ end end def invoke_external_task repo = ::Katello::Repository.find(input[:repository_id]) - output[:pulp_tasks] = repo.backend_service(smart_proxy).with_mirror_adapter.sync + sync_options = {} + sync_options[:optimize] = false if sync_options[:skip_metadata_check] + output[:pulp_tasks] = repo.backend_service(smart_proxy).with_mirror_adapter.sync(sync_options) end def rescue_strategy_for_self # There are various reasons the syncing fails, not all of them are # fatal: when fail on syncing, we continue with the task ending up