Project

General

Profile

« Previous | Next » 

Revision cc60ee97

Added by Justin Sherrill almost 6 years ago

Fixes #23788 - update product and content names

this adds updating of product and content names if they
change as part of content import

View differences:

app/models/katello/glue/candlepin/subscription.rb
def get_for_owner(organization)
Katello::Resources::Candlepin::Product.all(organization).select do |product|
#this product's id is non-numeric (marketing product), or its a custom product
product['id'].to_i.to_s != product['id'] || Katello::Product.find_by(:cp_id => product['id']).try(:custom?)
!Glue::Candlepin::Product.engineering_product_id?(product['id']) || Katello::Product.find_by(:cp_id => product['id']).try(:custom?)
end
end
end

Also available in: Unified diff