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.15.1.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.16.0.rc1.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.16.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0.rc1.3 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0.rc1.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0.rc1.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.15.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.14.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.4 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.14.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.3 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.14.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.14.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.13.0 app/lib/actions/pulp/repository/create_in_plan.rb