Skip to content

Commit

Permalink
Update kernel side load job status check
Browse files Browse the repository at this point in the history
  • Loading branch information
agurenko committed Nov 25, 2024
1 parent 160761d commit b52a6bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/sideload_kernel/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
delay: 15

- name: Ensure the job completed successfully
vars:
query_complete: "status.conditions[?type=='Complete'].status"
ansible.builtin.fail:
msg: "Job state is {{ job_state.resources[0].status.conditions[0].type }}"
when: job_state.resources[0].status.conditions[0].type != 'Complete'
msg: "Job state is {{ job_state.resources[0] | community.general.json_query(query_complete) }}"
when: "'True' not in job_state.resources[0] | community.general.json_query(query_complete)"
...

0 comments on commit b52a6bc

Please sign in to comment.