Bug #15778
closed
Can't use process_success Foreman method in API controllers on DynflowTask
Added by Marek Hulán over 8 years ago.
Updated over 6 years ago.
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.
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman-tasks/pull/194 added
- Blocks Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasks added
- Status changed from Ready For Testing to Closed
- Translation missing: en.field_release set to 176
- Related to Bug #16067: create job invocation hammer command fails with NoMethodError (undefined method `[]' for nil:NilClass): added
Also available in: Atom
PDF