Commit 538b5962 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a problem when getServer() returns None.

git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@89 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a1c12885
......@@ -256,7 +256,14 @@ class Application(object):
node_type = node.getNodeType()
state = node.getState()
uuid = node.getUUID()
ip_address, port = node.getServer()
# The server address may be None.
addr = node.getServer()
if addr is None:
ip_address, port = None, None
else:
ip_address, port = addr
if ip_address is None:
ip_address = '0.0.0.0'
if port is None:
......
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