Project

General

Profile

Actions

Bug #26535

closed

Katello::Content uses removed Katello::Glue::Candlepin::Product.import_product_content

Added by Evgeni Golov almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

In #25981, we removed import_product_content from Katello::Glue::Candlepin::Product, however, this method is still used in Katello::Content:

    def self.import_all
      Organization.all.each do |org|
        org.products.each do |product|
          begin
            product_json = Katello::Resources::Candlepin::Product.get(org.label,
                                                                  product.cp_id,
                                                                  %w(productContent)).first
            product_content_attrs = product_json['productContent']
            Katello::Glue::Candlepin::Product.import_product_content(product, product_content_attrs)
          rescue RestClient::NotFound
            Rails.logger.warn _("Product with ID %s not found in Candlepin. Skipping content import for it.") % product.cp_id
          end
        end
      end
    end

I think this code is only called in the katello:reimport rake task, but that one will fail now.


Related issues 1 (0 open1 closed)

Related to Katello - Bug #25981: Manifest upload task takes too much timeClosedJustin SherrillActions
Actions

Also available in: Atom PDF