mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03:30
Handle case of deleted inventory
This commit is contained in:
@@ -1904,7 +1904,8 @@ class RunJob(BaseTask):
|
||||
except Inventory.DoesNotExist:
|
||||
pass
|
||||
else:
|
||||
update_inventory_computed_fields.delay(inventory.id)
|
||||
if inventory is not None:
|
||||
update_inventory_computed_fields.delay(inventory.id)
|
||||
|
||||
|
||||
@task()
|
||||
|
||||
Reference in New Issue
Block a user