app/lib/actions/pulp/repository/create_in_plan.rb in katello-3.11.2 vs app/lib/actions/pulp/repository/create_in_plan.rb in katello-3.12.0.rc1
- old
+ new
@@ -2,11 +2,11 @@
module Pulp
module Repository
class CreateInPlan < Create
alias_method :perform_run, :run
- def plan(repository)
- input[:response] = repository.backend_service(SmartProxy.pulp_master).create
+ def plan(repository, smart_proxy)
+ input[:response] = repository.backend_service(smart_proxy).create
rescue RestClient::Conflict
Rails.logger.warn("Tried to add repository #{input[:pulp_id]} that already exists.")
end
end
end