Commit 50c1c060 by Michael DeHaan

Merge pull request #2193 from szinck/devel

pass in int() args to get_pty
parents 3c40ce57 e7719e4e
...@@ -123,8 +123,8 @@ class Connection(object): ...@@ -123,8 +123,8 @@ class Connection(object):
# we give it one, and we try to initialise from the calling # we give it one, and we try to initialise from the calling
# environment # environment
chan.get_pty(term=os.getenv('TERM', 'vt100'), chan.get_pty(term=os.getenv('TERM', 'vt100'),
width=os.getenv('COLUMNS', 0), width=int(os.getenv('COLUMNS', 0)),
height=os.getenv('LINES', 0)) height=int(os.getenv('LINES', 0)))
shcmd, prompt = utils.make_sudo_cmd(sudo_user, executable, cmd) shcmd, prompt = utils.make_sudo_cmd(sudo_user, executable, cmd)
vvv("EXEC %s" % shcmd, host=self.host) vvv("EXEC %s" % shcmd, host=self.host)
sudo_output = '' sudo_output = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment