Project

General

Profile

Actions

Bug #15778

closed

Can't use process_success Foreman method in API controllers on DynflowTask

Added by Marek Hulán about 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When I try to use following in API controller in Foreman

process_success task

to render task json, I'm getting undefined method `foreman_tasks_task_dynflow_task_url'
This happens if task is kind of ForemanTasks::DynflowTask. To fix it we can use the same technique Foreman uses for operating systems STI.


Related issues 2 (0 open2 closed)

Related to Foreman Remote Execution - Bug #16067: create job invocation hammer command fails with NoMethodError (undefined method `[]' for nil:NilClass):ClosedIvan Necas08/11/2016Actions
Blocks Foreman - Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasksClosedMarek Hulán07/22/2016Actions
Actions

Also available in: Atom PDF