Sha256: 64b6d1795d1c6c44a5708133644cc85f5c4507cb90bfdcca04bea6412add0660

Contents?: true

Size: 415 Bytes

Versions: 129

Compression:

Stored size: 415 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class CreateInPlan < Create
        alias_method :perform_run, :run

        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
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
katello-3.13.0.rc2.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.12.3 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.12.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.12.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.12.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.12.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.12.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb