Commit a5128e24 authored by MERCIER Michael's avatar MERCIER Michael

[code] fix metadata for real

parent 9794c8df
......@@ -353,8 +353,8 @@ class Batsim(object):
full id in "parent_job" and the number of resubmissions in "nb_resubmit".
"""
if job.metadata is None or not "nb_resubmit" in metadata:
metadata = {"parent_job" : job.id, "nb_resubmit": 1}
if job.metadata is None or not "nb_resubmit" in job.metadata:
metadata = {"parent_job": job.id, "nb_resubmit": 1}
else:
metadata = deepcopy(job.metadata)
if "parent_job" not in metadata:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment