mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Be more specific on the model
This commit is contained in:
parent
003104cbdb
commit
210b1dce2e
@ -99,7 +99,17 @@ def emit_job_event_detail(sender, **kwargs):
|
||||
instance = kwargs['instance']
|
||||
created = kwargs['created']
|
||||
if created:
|
||||
event_serialized = JobEventSerializer(instance).data
|
||||
#event_serialized = JobEventSerializer(instance).data
|
||||
event_serialized = dict(job_id=instance.job.id,
|
||||
event=instance.event,
|
||||
event_data=instance.event_data,
|
||||
failed=instance.failed,
|
||||
changed=instance.changed,
|
||||
host=instance.host,
|
||||
play=instance.play,
|
||||
role=instance.role,
|
||||
task=instance.task,
|
||||
parent=instance.parent.id)
|
||||
emit_websocket_notification('/socket.io/job_events', 'job_events-' + str(instance.id), event_serialized)
|
||||
|
||||
post_save.connect(update_inventory_computed_fields, sender=Host)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user