Handle case of deleted inventory

This commit is contained in:
AlanCoding 2020-02-13 08:29:52 -05:00
parent 4a455c7bf7
commit a5e3d9558f
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

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