Skip to content

Commit

Permalink
Merge pull request #492 from agurenko/kernel-sideload-wait-improvement
Browse files Browse the repository at this point in the history
Update kernel side load job status check
  • Loading branch information
fredericlepied authored Nov 25, 2024
2 parents 160761d + b52a6bc commit cad4187
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 cad4187

Please sign in to comment.