Fix for bug related to async jid polling change plus a new test

This commit is contained in:
James Cammarata 2014-03-26 15:48:42 -05:00
commit 78bdb078fe
2 changed files with 16 additions and 2 deletions

View file

@ -43,3 +43,17 @@
- "'stdout_lines' in async_result"
- "async_result.rc == 0"
- name: test async without polling
command: sleep 5
async: 30
poll: 0
register: async_result
- debug: var=async_result
- name: validate async without polling returns
assert:
that:
- "'ansible_job_id' in async_result"
- "'started' in async_result"
- "'finished' not in async_result"