1
0
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:
softwarefactory-project-zuul[bot] 2020-02-19 19:30:07 +00:00 committed by GitHub
commit 62ef1baace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()