Commit 92c0c673 authored by Vincent Pelletier's avatar Vincent Pelletier

Use None to mean "not set".

parent a811c865
......@@ -106,8 +106,8 @@ def parseNodeAddress(address, port_opt=None):
def parseMasterList(masters, except_node=None):
assert masters, 'At least one master must be defined'
socket_connector = ''
# load master node list
socket_connector = None
master_node_list = []
# XXX: support '/' and ' ' as separator
masters = masters.replace('/', ' ')
......@@ -118,7 +118,7 @@ def parseMasterList(masters, except_node=None):
master_node_list.append(address)
socket_connector_temp = getConnectorFromAddress(address)
if socket_connector == '':
if socket_connector is None:
socket_connector = socket_connector_temp
elif socket_connector == socket_connector_temp:
pass
......
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