mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02:30
Make websocket events more informative
* Make sure we always populate workflow information when relevant to job status changes. * Include detail about workflow job node
This commit is contained in:
@@ -1230,9 +1230,10 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin):
|
||||
return 'DEFAULT_INVENTORY_UPDATE_TIMEOUT'
|
||||
|
||||
def websocket_emit_data(self):
|
||||
websocket_data = super(InventoryUpdate, self).websocket_emit_data()
|
||||
if self.inventory_source.group is not None:
|
||||
return dict(group_id=self.inventory_source.group.id)
|
||||
return {}
|
||||
websocket_data.update(dict(group_id=self.inventory_source.group.id))
|
||||
return websocket_data
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
update_fields = kwargs.get('update_fields', [])
|
||||
|
||||
Reference in New Issue
Block a user