From e7719e4e466187bcff6fbbd7fdaf888a4950315a Mon Sep 17 00:00:00 2001 From: Shaun Zinck Date: Sun, 24 Feb 2013 13:39:03 -0600 Subject: [PATCH] pass in int() args to get_pty If LINES or COLUMNS was set, get_pty was failing because it was expecting an int value to be passed in. --- lib/ansible/runner/connection_plugins/paramiko_ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/runner/connection_plugins/paramiko_ssh.py b/lib/ansible/runner/connection_plugins/paramiko_ssh.py index 6700efa8c73..938848b4421 100644 --- a/lib/ansible/runner/connection_plugins/paramiko_ssh.py +++ b/lib/ansible/runner/connection_plugins/paramiko_ssh.py @@ -123,8 +123,8 @@ class Connection(object): # we give it one, and we try to initialise from the calling # environment chan.get_pty(term=os.getenv('TERM', 'vt100'), - width=os.getenv('COLUMNS', 0), - height=os.getenv('LINES', 0)) + width=int(os.getenv('COLUMNS', 0)), + height=int(os.getenv('LINES', 0))) shcmd, prompt = utils.make_sudo_cmd(sudo_user, executable, cmd) vvv("EXEC %s" % shcmd, host=self.host) sudo_output = ''