Skip to content

Commit

Permalink
Add plugin and template_id to resource and attachment results in …
Browse files Browse the repository at this point in the history
…submission.json (bugfix) (#1596)

Add plugin and template_id in resource and attachment results

These values should be there, since all of these are jobs.
  • Loading branch information
pieqq authored Nov 13, 2024
1 parent 5879bbb commit b965681
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"type": "test",
"project": "certification",
"duration": {{ job_state.result.execution_duration if job_state.result.execution_duration else 0 }},
"plugin": "{{ job_state.job.plugin }}",
"plugin": {{ job_state.job.plugin | jsonify | safe }},
"template_id": {{ job_state.job.template_id | jsonify | safe }}
}{%- if not loop.last -%},{%- endif %}
{%- endfor %}
Expand All @@ -87,7 +87,9 @@
"io_log": {{ job_state.result.io_log_as_flat_text | jsonify | safe }},
"type": "test",
"project": "certification",
"duration": {{ job_state.result.execution_duration if job_state.result.execution_duration else 0}}
"duration": {{ job_state.result.execution_duration if job_state.result.execution_duration else 0 }},
"plugin": {{ job_state.job.plugin | jsonify | safe }},
"template_id": {{ job_state.job.template_id | jsonify | safe }}
}{%- if not loop.last -%},{%- endif %}
{%- endfor %}
],
Expand All @@ -104,7 +106,8 @@
"outcome": "{{ job_state.result.outcome }}",
"comments": {{ job_state.result.comments | jsonify | safe }},
"io_log": {{ job_state.result.io_log_as_text_attachment | jsonify | safe }},
"duration": {{ job_state.result.execution_duration if job_state.result.execution_duration else 0}},
"duration": {{ job_state.result.execution_duration if job_state.result.execution_duration else 0 }},
"plugin": {{ job_state.job.plugin | jsonify | safe }},
"template_id": {{ job_state.job.template_id | jsonify | safe }}
}{%- if not loop.last -%},{%- endif %}
{%- endfor %}
Expand Down

0 comments on commit b965681

Please sign in to comment.