mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
Be more specific on the model
This commit is contained in:
@@ -99,7 +99,17 @@ def emit_job_event_detail(sender, **kwargs):
|
|||||||
instance = kwargs['instance']
|
instance = kwargs['instance']
|
||||||
created = kwargs['created']
|
created = kwargs['created']
|
||||||
if 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)
|
emit_websocket_notification('/socket.io/job_events', 'job_events-' + str(instance.id), event_serialized)
|
||||||
|
|
||||||
post_save.connect(update_inventory_computed_fields, sender=Host)
|
post_save.connect(update_inventory_computed_fields, sender=Host)
|
||||||
|
|||||||
Reference in New Issue
Block a user