mirror of
https://github.com/ansible/awx.git
synced 2026-04-19 00:40:18 -02: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