mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 07:28:02 -03:30
also add inventory_source_id to websocket data
This commit is contained in:
parent
1248be9b7c
commit
b651983045
@ -1278,6 +1278,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin):
|
||||
|
||||
def websocket_emit_data(self):
|
||||
websocket_data = super(InventoryUpdate, self).websocket_emit_data()
|
||||
websocket_data.update(dict(inventory_source_id=self.inventory_source.pk))
|
||||
|
||||
if self.inventory_source.inventory is not None:
|
||||
websocket_data.update(dict(inventory_id=self.inventory_source.inventory.pk))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user