Fix pause module so it does not stack trace when redirecting stdout. (#42217)

* Use separate variables for stdin and stdout file descriptors

* Do not set stdout to raw mode when output is not a TTY
This commit is contained in:
Sam Doran
2018-07-06 17:19:55 -04:00
committed by GitHub
parent 39ec12f395
commit 1d1595b990
3 changed files with 34 additions and 18 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- pause - do not set stdout to raw mode when redirecting to a file (https://github.com/ansible/ansible/issues/41717)