mirror of
https://github.com/ansible/awx.git
synced 2024-10-27 09:25:10 +03:00
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:
commit
62ef1baace
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user