Skip to content
Snippets Groups Projects
Commit 482a4c6b authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Remember that the results are an array. If there's only one result, don't send it inside an array

parent ea7b4dfc
No related branches found
No related tags found
No related merge requests found
Pipeline #515561 passed
......@@ -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()]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment