From: barate Date: Wed, 3 Apr 2013 09:28:19 +0000 (+0000) Subject: Fix for previous integration: no more error message when a batch manager does not... X-Git-Tag: V7_2_0rc1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3f093932cd2b78aaff3e53456aaa02131f2f98d;p=modules%2Fkernel.git Fix for previous integration: no more error message when a batch manager does not support the getAssignedHostnames feature --- diff --git a/src/Launcher/Launcher_Job.cxx b/src/Launcher/Launcher_Job.cxx index c9d52da1e..5e1fc7ae2 100644 --- a/src/Launcher/Launcher_Job.cxx +++ b/src/Launcher/Launcher_Job.cxx @@ -469,7 +469,8 @@ Launcher::Job::updateJobState() Batch::JobInfo job_info = _batch_job_id.queryJob(); Batch::Parametre par = job_info.getParametre(); _state = par[Batch::STATE].str(); - _assigned_hostnames = par[Batch::ASSIGNEDHOSTNAMES].str(); + _assigned_hostnames = (par.find(Batch::ASSIGNEDHOSTNAMES) == par.end())? + "" : par[Batch::ASSIGNEDHOSTNAMES].str(); LAUNCHER_MESSAGE("State received is: " << par[Batch::STATE].str()); } #endif