ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/miq_request_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
85%
module MiqRequestHelper
  include RequestInfoHelper
  include RequestDetailsHelper

  def row_data(label, value)
    {:cells => {:label => label, :value => value}}
  end

  def request_task_configuration_script_ids(miq_request)
    miq_request.miq_request_tasks.map { |task| task.options&.dig(:configuration_script_id) }.compact
  end
end