mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Revert "fixes Save with update_fields did not affect any rows"
This reverts commit c6d282fce27d23317d2649ccf00b75799dad1a86. This didn't fix the underlying issue. The issue is that the inventory object may have been deleted by the time save is called.
This commit is contained in:
parent
9357850718
commit
735a75729f
@ -309,8 +309,7 @@ class Inventory(CommonModel, ResourceMixin):
|
||||
else:
|
||||
computed_fields.pop(field)
|
||||
if computed_fields:
|
||||
if len(computed_fields) > 0:
|
||||
iobj.save(update_fields=computed_fields.keys())
|
||||
iobj.save(update_fields=computed_fields.keys())
|
||||
logger.debug("Finished updating inventory computed fields")
|
||||
|
||||
@property
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user