Commit 107c166c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Bug fix, primary_master_node got the value -1 if disconnected.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@635 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 611792fa
......@@ -355,7 +355,7 @@ class Application(object):
self._waitMessage()
while True:
self.setNodeReady()
if self.primary_master_node is None:
if self.primary_master_node in (None, -1):
# Try with master node defined in config
try:
addr, port = self.master_node_list[master_index].split(':')
......
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