Commit 6ab80ea8 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Update identified index only in case of changes.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2067 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fe4364c4
......@@ -306,13 +306,11 @@ class NodeManager(object):
def _updateIdentified(self, node):
uuid = node.getUUID()
if node.isIdentified():
identified = node.isIdentified()
if uuid in self._identified_dict and not identified:
del self._identified_dict[uuid]
elif identified:
self._identified_dict[uuid] = node
else:
try:
del self._identified_dict[uuid]
except KeyError:
pass
def _updateAddress(self, node, old_address):
self.__update(self._address_dict, old_address, node.getAddress(), node)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment