1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Fix wfj node related destination.

This commit is contained in:
Aaron Tan 2016-12-08 16:40:07 -05:00
parent 26adcf5972
commit e5278e2291

View File

@ -2420,7 +2420,7 @@ class WorkflowJobNodeSerializer(WorkflowNodeBaseSerializer):
res['failure_nodes'] = reverse('api:workflow_job_node_failure_nodes_list', args=(obj.pk,)) res['failure_nodes'] = reverse('api:workflow_job_node_failure_nodes_list', args=(obj.pk,))
res['always_nodes'] = reverse('api:workflow_job_node_always_nodes_list', args=(obj.pk,)) res['always_nodes'] = reverse('api:workflow_job_node_always_nodes_list', args=(obj.pk,))
if obj.job: if obj.job:
res['job'] = reverse('api:job_detail', args=(obj.job.pk,)) res['job'] = obj.job.get_absolute_url()
if obj.workflow_job: if obj.workflow_job:
res['workflow_job'] = reverse('api:workflow_job_detail', args=(obj.workflow_job.pk,)) res['workflow_job'] = reverse('api:workflow_job_detail', args=(obj.workflow_job.pk,))
return res return res