1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Expose play and task attributes on job event.

This commit is contained in:
Chris Church 2013-06-27 15:41:24 -04:00
parent ec080313fc
commit d387f013b7

View File

@ -432,7 +432,7 @@ class JobEventSerializer(BaseSerializer):
model = JobEvent
fields = ('id', 'url', 'created', 'job', 'event', 'event_display',
'event_data', 'failed', 'host', 'related', 'summary_fields',
'parent')
'parent', 'play', 'task')
def get_related(self, obj):
res = super(JobEventSerializer, self).get_related(obj)