To allow different cluster daemon client

This commit is contained in:
Mark Mine 2004-04-30 23:09:01 +00:00
parent 3758bbf5cd
commit 98bf9bd0a7

View File

@ -15,8 +15,12 @@ class ClusterClient(DirectObject.DirectObject):
def __init__(self, configList, clusterSyncFlag):
# First start up servers using direct daemon
# What is the name of the client machine?
clusterDaemonClient = os.popen('uname -n').read()
clusterDaemonClient = clusterDaemonClient.replace('\n', '')
clusterDaemonClient = base.config.GetString(
'cluster-daemon-client', 'None')
if clusterDaemonClient == 'None':
clusterDaemonClient = os.popen('uname -n').read()
clusterDaemonClient = clusterDaemonClient.replace('\n', '')
print 'CLIENT', clusterDaemonClient
# What daemon port are we using to communicate between client/servers
clusterDaemonPort = base.config.GetInt(
'cluster-daemon-port', CLUSTER_DAEMON_PORT)