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