app/lib/actions/katello/repository/clone_yum_content.rb in katello-3.9.1 vs app/lib/actions/katello/repository/clone_yum_content.rb in katello-3.10.0.rc1

- old
+ new

@@ -2,11 +2,10 @@ module Katello module Repository class CloneYumContent < Actions::Base # rubocop:disable MethodLength # rubocop:disable Metrics/CyclomaticComplexity TODO: refactor to push everything into options hash - # rubocop:disable Metrics/PerceivedComplexity def plan(source_repo, target_repo, filters, options = {}) generate_metadata = options.fetch(:generate_metadata, true) index_content = options.fetch(:index_content, true) rpm_filenames = options.fetch(:rpm_filenames, {}) purge_empty_units = options.fetch(:purge_empty_units, {}) @@ -60,10 +59,10 @@ plan_copy(Pulp::Repository::CopyModuleDefault, source_repo, target_repo) # Check for matching content before indexing happens, the content in pulp is # actually updated, but it is not reflected in the database yet. output = {} - if target_repo.environment && !options[:force_yum_metadata_regeneration] + if target_repo.environment output = plan_action(Katello::Repository::CheckMatchingContent, :source_repo_id => source_repo.id, :target_repo_id => target_repo.id).output end