Fix sending of command to just one server

This commit is contained in:
Mark Mine 2003-02-10 18:18:03 +00:00
parent acd1e382dd
commit e21f1eae8b

View File

@ -117,8 +117,9 @@ class ClusterClient(DirectObject.DirectObject):
# Execute remotely # Execute remotely
if serverNum is not None: if serverNum is not None:
self.serverList[serverNum].sendCommandString(commandString) self.serverList[serverNum].sendCommandString(commandString)
for server in self.serverList: else:
server.sendCommandString(commandString) for server in self.serverList:
server.sendCommandString(commandString)
if fLocally: if fLocally:
# Execute locally # Execute locally
exec( commandString, __builtins__ ) exec( commandString, __builtins__ )