Project

General

Profile

« Previous | Next » 

Revision dfd76cd5

Added by Partha Aji about 10 years ago

fixes #4714 - Removing traces of unused cdn_import_success code

This db column is left over legacy code that was being used from the days
when importing manifest also created repositories in pulp and candlepin.

After we moved to the better way of importing reposets this code became
dead code. Nothing was referring to this, so removing this.

View differences:

app/lib/katello/util/cdn_var_substitutor.rb
def initialize(cdn_resource)
@resource = cdn_resource
@substitutions = Thread.current[:cdn_var_substitutor_cache] || {}
@status = true
end
# using substitutor from whithin the block makes sure that every
......
@resource.get(File.join(base_path, "listing")).split("\n")
rescue Errors::NotFound => e # some of listing file points to not existing content
@resource.log :error, e.message
@resource.product.try(:repositories_cdn_import_failed!)
@status = false
[] # return no substitution for unreachable listings
end

Also available in: Unified diff