Project

General

Profile

Actions

Bug #26478

closed

Remove dead code on pulp-2.19 upgrade

Added by Partha Aji over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

https://github.com/Katello/katello/blob/master/app/services/katello/pulp/repository.rb#L241-L252

        if content_type == ::Katello::Erratum::CONTENT_TYPE
          # copy the modules belonging to this errarta over (pulp 2.19 should handle this case out of the box)
          # remove this code after 2.19
          module_stream_ids = units.map do |erratum|
            erratum.module_stream_objects.map(&:pulp_id)
          end
          module_stream_ids.flatten!
          smart_proxy.pulp_api.extensions.module.copy(repo.pulp_id,
                                                      destination_repo.pulp_id,
                                                      ids: module_stream_ids,
                                                      override_config: override_config)
        end

Needs to get removed when pulp 2.19 upgrade happens

Actions

Also available in: Atom PDF