Fix collection test flake due to successful canceled command (#14519)

This commit is contained in:
Alan Rominger
2023-10-04 09:09:29 -04:00
committed by GitHub
parent 9d60b0b9c6
commit e72e9f94b9

View File

@@ -108,8 +108,9 @@
- assert: - assert:
that: that:
- wait_results is successful - 'wait_results.status in ["successful", "canceled"]'
- 'wait_results.status == "successful"' 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 - name: Delete the Credential
credential: credential: