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