mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Clarify that stderr WILL crash your module. Can't redirect because if we do we lose tracebacks
from modules remotely when they fail to parse, and this is VERY useful data.
This commit is contained in:
parent
88a7f771cb
commit
6341361a5b
2 changed files with 3 additions and 5 deletions
|
@ -140,8 +140,7 @@ class ParamikoConnection(object):
|
|||
stderr = chan.makefile_stderr('rb', bufsize)
|
||||
chan.get_pty()
|
||||
chan.set_combine_stderr(False)
|
||||
|
||||
|
||||
|
||||
if not self.runner.sudo or not sudoable:
|
||||
quoted_command = '"$SHELL" -c ' + pipes.quote(cmd)
|
||||
chan.exec_command(quoted_command)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue