Sha256: e10ea8932a1b8037feb27cfa18f5791cf07b3177118f92b0292ce58d6693cec5
Contents?: true
Size: 658 Bytes
Versions: 20
Compression:
Stored size: 658 Bytes
Contents
module ForemanInventoryUpload class MissingHostsController < ::ApplicationController def index organizations = Organization.current || User.current.my_organizations organization_id = organizations.pluck(:id) payload = InsightsMissingHosts.where(organization_id: organization_id) render :json => payload end def remove_hosts organization_id = params[:organization_id] search_term = params[:search_term] task = ForemanTasks.async_task(ForemanInventoryUpload::Async::RemoveInsightsHostsJob, search_term, organization_id) render json: { task: task, }, status: :ok end end end
Version data entries
20 entries across 20 versions & 1 rubygems