]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for previous integration: no more error message when a batch manager does not...
authorbarate <barate>
Wed, 3 Apr 2013 09:28:19 +0000 (09:28 +0000)
committerbarate <barate>
Wed, 3 Apr 2013 09:28:19 +0000 (09:28 +0000)
src/Launcher/Launcher_Job.cxx

index c9d52da1e845a3ae81edaf8c9551bbe86bf1e62c..5e1fc7ae2508bb1376d4757a1c305fee216913c9 100644 (file)
@@ -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