Salome HOME
Moved username initialization to the constructor in BatchManager_eClients
[tools/libbatch.git] / src / SSH / Batch_FactBatchManager_eSSH.cxx
index d2f58cf8d4a2ffc3d4f07079031a9e67d34f54c4..4a6ef35cb7588fd86ccc76b6cb5065f5ad733bde 100644 (file)
@@ -45,6 +45,7 @@ Batch::FactBatchManager_eSSH::operator() (const char * hostname) const
 
 Batch::BatchManager_eClient * 
 Batch::FactBatchManager_eSSH::operator() (const char * hostname,
+                                          const char * username,
                                   CommunicationProtocolType protocolType,
                                   const char * mpiImpl,
                                   int nb_proc_per_node) const
@@ -52,5 +53,5 @@ Batch::FactBatchManager_eSSH::operator() (const char * hostname,
   //protocolType and mpiImpl are ignored.
   std::cerr << "[Batch::FactBatchManager_eSSH] creating new Batch::BatchManager_eSSH with hostname = " << hostname << std::endl;
 
-  return new Batch::BatchManager_eSSH(this, hostname);
+  return new Batch::BatchManager_eSSH(this, hostname, username);
 }