From e141b3fb456494c1e6164bc4b5cad757a9dfcad3 Mon Sep 17 00:00:00 2001 From: prascle Date: Tue, 6 Sep 2011 07:29:47 +0000 Subject: [PATCH] PR: wrong syntax for srun parameters --- src/Container/SALOME_ContainerManager.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 9ce5eec54..87de58880 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -661,7 +661,8 @@ SALOME_ContainerManager::BuildCommandToLaunchRemoteContainer else throw SALOME_Exception("Unknown protocol"); - if (resInfo.UserName != "") + // no need to redefine the user with srun, the job user is taken by default (note: for srun, user id can be specified with " --uid=") + if (resInfo.Protocol != srun && resInfo.UserName != "") { command += "-l "; command += resInfo.UserName; -- 2.39.2