mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Check for null group in inventory source before attempting to emit
inventory status change event
This commit is contained in:
@@ -740,6 +740,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions):
|
|||||||
return RunInventoryUpdate
|
return RunInventoryUpdate
|
||||||
|
|
||||||
def socketio_emit_data(self):
|
def socketio_emit_data(self):
|
||||||
|
if self.inventory_source.group is not None:
|
||||||
return dict(group_id=self.inventory_source.group.id)
|
return dict(group_id=self.inventory_source.group.id)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user