Also fix intermittent ssh error using pty's for paramiko

Related to #13876
pull/15226/head
James Cammarata 9 years ago
parent 0ced20951f
commit 2e55b3567b

@ -266,8 +266,8 @@ class Connection(ConnectionBase):
# sudo usually requires a PTY (cf. requiretty option), therefore # sudo usually requires a PTY (cf. requiretty option), therefore
# we give it one by default (pty=True in ansble.cfg), and we try # we give it one by default (pty=True in ansble.cfg), and we try
# to initialise from the calling environment # to initialise from the calling environment when sudoable is enabled
if C.PARAMIKO_PTY: if C.PARAMIKO_PTY and sudoable:
chan.get_pty(term=os.getenv('TERM', 'vt100'), width=int(os.getenv('COLUMNS', 0)), height=int(os.getenv('LINES', 0))) chan.get_pty(term=os.getenv('TERM', 'vt100'), width=int(os.getenv('COLUMNS', 0)), height=int(os.getenv('LINES', 0)))
display.vvv("EXEC %s" % cmd, host=self._play_context.remote_addr) display.vvv("EXEC %s" % cmd, host=self._play_context.remote_addr)

Loading…
Cancel
Save