mirror of https://github.com/ansible/ansible.git
pause - do not hang if run in the background (#72065)
* Consolidate logic for determining whether or not session is interactive into a single function, is_interactive() * Increase test coverage I wasn't able to find a good way of simulating running a backgrounded test with CI since the whole test is essentially run not in a TTY, which is similar enough to cause the new is_interactive() function to always return false.pull/72617/head
parent
aee7a3ed68
commit
4b8cb6582b
@ -0,0 +1,4 @@
|
||||
bugfixes:
|
||||
- >
|
||||
pause - Fix indefinite hang when using a pause task on a background
|
||||
process (https://github.com/ansible/ansible/issues/32142)
|
||||
@ -0,0 +1,10 @@
|
||||
- name: Test pause in a background task
|
||||
hosts: localhost
|
||||
gather_facts: no
|
||||
become: no
|
||||
|
||||
tasks:
|
||||
- pause:
|
||||
|
||||
- pause:
|
||||
seconds: 1
|
||||
Loading…
Reference in New Issue