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

Include host name in the job event serializer

This commit is contained in:
Matthew Jones 2014-05-02 13:23:45 -04:00
parent e4afaeb2a6
commit 44bb12c5c3

View File

@ -1329,7 +1329,7 @@ class JobEventSerializer(BaseSerializer):
model = JobEvent
fields = ('*', '-name', '-description', 'job', 'event',
'event_display', 'event_data', 'event_level', 'failed',
'changed', 'host', 'parent', 'play', 'task', 'role')
'changed', 'host', 'host_name', 'parent', 'play', 'task', 'role')
def get_related(self, obj):
res = super(JobEventSerializer, self).get_related(obj)