From d3f093932cd2b78aaff3e53456aaa02131f2f98d Mon Sep 17 00:00:00 2001 From: barate Date: Wed, 3 Apr 2013 09:28:19 +0000 Subject: [PATCH] Fix for previous integration: no more error message when a batch manager does not support the getAssignedHostnames feature --- src/Launcher/Launcher_Job.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2