mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
Parse async response in async action. (#16534)
* Parse async response in async action. * Add async test for non-JSON data before module output. * Fix existing async unit test. Resolves #16156
This commit is contained in:
parent
f86c527736
commit
292785ff2b
5 changed files with 29 additions and 12 deletions
10
test/integration/test_async.yml
Normal file
10
test/integration/test_async.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
- hosts: testhost3
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# make sure non-JSON data before module output is ignored
|
||||
- name: async ping with invalid locale via ssh
|
||||
ping:
|
||||
async: 3
|
||||
poll: 1
|
||||
register: result
|
||||
- debug: var=result
|
||||
Loading…
Add table
Add a link
Reference in a new issue