Skip to content

Commit

Permalink
Update value.py
Browse files Browse the repository at this point in the history
feat(AttributeValueManager.create_or_update_attr_value()): AttributeValue update skip The same value
  • Loading branch information
lovvvve committed Jan 28, 2021
1 parent 6cb5628 commit 730f429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdb-api/api/lib/cmdb/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def create_or_update_attr_value(self, key, value, ci, _no_attribute_policy=Exist
else:
existed_attr.update(value=value)

AttributeValueManager._write_change(ci.id, attr.id, OperateType.UPDATE, existed_value, value)
self._write_change(ci.id, attr.id, OperateType.UPDATE, existed_value, value)

@staticmethod
def delete_attr_value(attr_id, ci_id):
Expand Down

0 comments on commit 730f429

Please sign in to comment.