Sha256: 828c1991f1a92055e19b708bca562677c60e3530056569cc97905e70c0fd7915

Contents?: true

Size: 598 Bytes

Versions: 9

Compression:

Stored size: 598 Bytes

Contents

module Actions
  module Pulp
    module Consumer
      class UnbindNodeDistributor < AbstractNodeDistributorTask
        input_format do
          param :consumer_uuid, String
          param :repo_id, String
        end

        def invoke_external_task
          pulp_resources.consumer.unbind(input[:consumer_uuid],
                                         input[:repo_id],
                                         distributor['id'])
        rescue  RestClient::ResourceNotFound
          Rails.logger.error("404 on consumer unbind.")
          return []
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.4 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.3 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.2 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.1 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.0 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.0.rc3 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.0.rc2 app/lib/actions/pulp/consumer/unbind_node_distributor.rb
katello-2.4.0.rc1 app/lib/actions/pulp/consumer/unbind_node_distributor.rb