app/models/foreman_tasks/task.rb in foreman-tasks-4.0.1 vs app/models/foreman_tasks/task.rb in foreman-tasks-4.1.0

- old
+ new

@@ -87,11 +87,11 @@ property :result, String, desc: 'Returns result of the task execution, e.g. "success"' property :started_at, ActiveSupport::TimeWithZone, desc: 'Returns date with time the task started at' property :ended_at, ActiveSupport::TimeWithZone, desc: 'Returns date with time the task ended at' end class Jail < Safemode::Jail - allow :started_at, :ended_at, :result, :state, :label, :main_action, :action_output + allow :started_at, :ended_at, :result, :state, :label, :main_action, :action_continuous_output end def input {} end @@ -247,10 +247,10 @@ end end.join('; ') parts.join(' ').strip end - def action_output + def action_continuous_output return unless main_action.is_a?(Actions::Helpers::WithContinuousOutput) main_action.continuous_output.sort! main_action.continuous_output.raw_outputs end