app/views/foreman_tasks/api/tasks/show.json.rabl in foreman-tasks-0.17.0 vs app/views/foreman_tasks/api/tasks/show.json.rabl in foreman-tasks-0.17.1
- old
+ new
@@ -1,5 +1,6 @@
object @task if @task
attributes :id, :label, :pending, :action
attributes :username, :started_at, :ended_at, :state, :result, :progress
attributes :input, :output, :humanized, :cli_example
+node(:available_actions) { |t| {cancellable: t.execution_plan&.cancellable?, resumable: t.resumable? }}