From: SRE Date: Thu, 11 May 2017 12:41:45 +0000 (+0200) Subject: bug fix when a job rely to an inexistent machine. X-Git-Tag: V8_3_0rc1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e37fc2641d65d80613d2ed23a1874560a03777b;p=tools%2Fsat.git bug fix when a job rely to an inexistent machine. --- diff --git a/commands/jobs.py b/commands/jobs.py index 570d91b..7a51eba 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -777,8 +777,11 @@ class Jobs(object): msg = _("WARNING: The job \"%(job_name)s\" requires the " "machine \"%(machine_name)s\" but this machine " "is not defined in the configuration file.\n" - "The job will not be launched") - self.logger.write(src.printcolors.printcWarning(msg)) + "The job will not be launched\n") + self.logger.write(src.printcolors.printcWarning( + msg % {"job_name" : job_def.name, + "machine_name" : name_machine})) + continue a_job = self.define_job(job_def, a_machine)