app/lib/actions/katello/repository_set/disable_repository.rb in katello-3.5.2 vs app/lib/actions/katello/repository_set/disable_repository.rb in katello-3.6.0.rc1

- old
+ new

@@ -20,18 +20,18 @@ end private def repository_mapper(product, content, substitutions, registry_name) - if content.type == ::Katello::Repository::CANDLEPIN_DOCKER_TYPE - ::Katello::Candlepin::Content::DockerRepositoryMapper.new(product, - content, - registry_name) + if content.content_type == ::Katello::Repository::CANDLEPIN_DOCKER_TYPE + ::Katello::Candlepin::DockerRepositoryMapper.new(product, + content, + registry_name) else - ::Katello::Candlepin::Content::RepositoryMapper.new(product, - content, - substitutions) + ::Katello::Candlepin::RepositoryMapper.new(product, + content, + substitutions) end end end end end