app/lib/actions/pulp/repository/remove_units.rb in katello-3.12.3 vs app/lib/actions/pulp/repository/remove_units.rb in katello-3.13.0.rc1

- old
+ new

@@ -20,10 +20,10 @@ tasks = [] if input[:content_unit_type] content_type = ::Katello::RepositoryTypeManager.find_content_type(input[:content_unit_type].downcase) if input[:contents] units = content_type.model_class.where(:id => input[:contents]) - unit_pulp_ids = units.map(&:pulp_id) + unit_pulp_ids = units.sort.map(&:pulp_id) end tasks << ::SmartProxy.pulp_master.content_service(content_type).remove(repo, unit_pulp_ids) else repo_content_types = ::Katello::RepositoryTypeManager.find(repo.content_type).content_types repo_content_types.each do |type|