mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
Merge pull request #5927 from AlanCoding/null_inventory
Handle case of deleted inventory Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
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