mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
update original when updating computed fields
This commit is contained in:
parent
8d35b71321
commit
51c73cb357
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user