Commit 475ecad0 authored by Aurel's avatar Aurel

fix getServer


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@148 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ea6b1aaa
...@@ -172,7 +172,11 @@ class ServiceEventHandler(MasterEventHandler): ...@@ -172,7 +172,11 @@ class ServiceEventHandler(MasterEventHandler):
app.broadcastNodeInformation(node) app.broadcastNodeInformation(node)
else: else:
# I know this node by the UUID. # I know this node by the UUID.
if node.getServer() != addr: try:
ip_address, port = node.getServer()
except TypeError:
ip_address, port = '0.0.0.0', 0
if (ip_address, port) != addr:
# This node has a different server address. # This node has a different server address.
if node.getState() == RUNNING_STATE: if node.getState() == RUNNING_STATE:
# If it is still running, reject this node. # If it is still running, reject this 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