mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
update original when updating computed fields
This commit is contained in:
@@ -357,6 +357,8 @@ class Inventory(CommonModelNameNotUnique, ResourceMixin):
|
||||
for field, value in computed_fields.items():
|
||||
if getattr(iobj, field) != value:
|
||||
setattr(iobj, field, value)
|
||||
# update in-memory object
|
||||
setattr(self, field, value)
|
||||
else:
|
||||
computed_fields.pop(field)
|
||||
if computed_fields:
|
||||
|
||||
Reference in New Issue
Block a user