From 6e37fc2641d65d80613d2ed23a1874560a03777b Mon Sep 17 00:00:00 2001 From: SRE Date: Thu, 11 May 2017 14:41:45 +0200 Subject: [PATCH] bug fix when a job rely to an inexistent machine. --- commands/jobs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) -- 2.39.2