Skip to content

Commit

Permalink
Fix collection test flake due to successful canceled command (ansible…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Oct 4, 2023
1 parent 9d60b0b commit e72e9f9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@

- assert:
that:
- wait_results is successful
- 'wait_results.status == "successful"'
- 'wait_results.status in ["successful", "canceled"]'
fail_msg: "Ad hoc command stdout: {{ lookup('awx.awx.controller_api', 'ad_hoc_commands/' + command.id | string + '/stdout/?format=json') }}"
success_msg: "Ad hoc command finished with status {{ wait_results.status }}"

- name: Delete the Credential
credential:
Expand Down

0 comments on commit e72e9f9

Please sign in to comment.