Sha256: 99f7d44cd7b0e4954f32a126516599adb7a9f745d8c3acd54f9db1560c1e382d

Contents?: true

Size: 635 Bytes

Versions: 70

Compression:

Stored size: 635 Bytes

Contents

module Actions
  module Candlepin
    class AsyncHypervisors < Candlepin::AbstractAsyncTask
      # this action is for tracking an async candlepin task when the task id is already known
      input_format do
        param :task_id
      end

      def invoke_external_task
        self.external_task = { :id => input[:task_id] }
        poll_external_task
      end

      def on_finish
        super
        output[:hypervisors] = ::Actions::Katello::Host::Hypervisors.parse_hypervisors(external_task.delete('resultData'))
      end

      private

      def job_poll_params
        {:result_data => true}
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.15.0.rc1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.14.1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.14.0 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.14.0.rc3 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.14.0.rc2 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.14.0.rc1.1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.14.0.rc1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.13.1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.13.0 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.12.1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.13.0.rc1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.12.0 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.12.0.rc3 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.12.0.rc2 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.12.0.rc1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.11.1 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.11.0 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.11.0.rc2 app/lib/actions/candlepin/async_hypervisors.rb
katello-4.11.0.rc1 app/lib/actions/candlepin/async_hypervisors.rb