app/lib/actions/katello/repository_set/disable_repository.rb in katello-3.8.1 vs app/lib/actions/katello/repository_set/disable_repository.rb in katello-3.9.0.rc1

- old
+ new

@@ -7,32 +7,24 @@ end def plan(product, content, options) repository = repository_mapper(product, content, - options, - options[:registry_name]).find_repository + options).find_repository if repository action_subject(repository) plan_action(Repository::Destroy, repository, :planned_destroy => true) else fail ::Katello::Errors::NotFound, _('Repository not found') end end private - def repository_mapper(product, content, substitutions, registry_name) - if content.content_type == ::Katello::Repository::CANDLEPIN_DOCKER_TYPE - ::Katello::Candlepin::DockerRepositoryMapper.new(product, - content, - registry_name) - - else - ::Katello::Candlepin::RepositoryMapper.new(product, - content, - substitutions) - end + def repository_mapper(product, content, substitutions) + ::Katello::Candlepin::RepositoryMapper.new(product, + content, + substitutions) end end end end end