Don't send informations to Master if it is the same as sent BY Master.

parent 478102ae
...@@ -488,11 +488,12 @@ class ComputerPartition(SlapDocument): ...@@ -488,11 +488,12 @@ class ComputerPartition(SlapDocument):
return self._software_release_document return self._software_release_document
def setConnectionDict(self, connection_dict, slave_reference=None): def setConnectionDict(self, connection_dict, slave_reference=None):
self._connection_helper.POST('/setComputerPartitionConnectionXml', { if self.getConnectionParameterDict() != connection_dict:
'computer_id': self._computer_id, self._connection_helper.POST('/setComputerPartitionConnectionXml', {
'computer_partition_id': self._partition_id, 'computer_id': self._computer_id,
'connection_xml': xml_marshaller.dumps(connection_dict), 'computer_partition_id': self._partition_id,
'slave_reference': slave_reference}) 'connection_xml': xml_marshaller.dumps(connection_dict),
'slave_reference': slave_reference})
@_syncComputerPartitionInformation @_syncComputerPartitionInformation
def getInstanceParameter(self, key): def getInstanceParameter(self, key):
......
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