From 3c77d1629c4dd8a1ada37983363fcadf824ec84d Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Fri, 5 Apr 2019 12:31:48 +0200 Subject: [PATCH] Fixes #26544 - task export to contain task uuid to let uniquely identify individual tasks in the export Signed-off-by: Pavel Moravec --- app/controllers/foreman_tasks/tasks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/foreman_tasks/tasks_controller.rb b/app/controllers/foreman_tasks/tasks_controller.rb index af6b34145..f73241084 100644 --- a/app/controllers/foreman_tasks/tasks_controller.rb +++ b/app/controllers/foreman_tasks/tasks_controller.rb @@ -19,7 +19,7 @@ def index end format.csv do @tasks = filter(resource_base, paginate: false) - csv_response(@tasks, [:action, :state, :result, 'started_at.in_time_zone', 'ended_at.in_time_zone', :username], ['Action', 'State', 'Result', 'Started At', 'Ended At', 'User']) + csv_response(@tasks, [:id, :action, :state, :result, 'started_at.in_time_zone', 'ended_at.in_time_zone', :username], ['Id', 'Action', 'State', 'Result', 'Started At', 'Ended At', 'User']) end end end