Commit 54ed49c2 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Neil Williams
Browse files

Fix crash in

Change-Id: I86ff0753b4ee3759de7adf71c04bf15e5010091b
parent b16e197b
......@@ -168,7 +168,7 @@ class SchedulerJobsAPI(ExposedV2API):
with open(os.path.join(job.output_dir, "output.yaml"), "r") as f_in:
count = 0
for _ in range(line):
count += next(len(f_in))
count += len(next(f_in))
return (job_finished, xmlrpclib.Binary("utf-8")))
except (IOError, StopIteration):
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