diff --git a/scheduler/schedule.py b/scheduler/schedule.py index 3582fa4610af4483d8a4675fc2ba20f3a0553730..0bd8ad3f0038ef5d32b7bbd6795f051ea720aa52 100755 --- a/scheduler/schedule.py +++ b/scheduler/schedule.py @@ -140,11 +140,15 @@ log(comment='All done!') final_results = [] for j in results.keys(): # Filter some stuff that may be too large - r = results[j] - del r['changes'] - r['count_diff'] = r['post_count']-r['pre_count'] + res = results[j] + for r in res: + del r['changes'] + r['count_diff'] = r['post_count']-r['pre_count'] - log(comment='Job result', job=j, result=r) + if len(res) == 1: + res = res[0] + + log(comment='Job result', job=j, result=res) exit_codes = [x[0]['exit_code'] for x in results.values()]