From eec1ba2ec2b0a1b060c5a8909ceb88ae6ec706ab Mon Sep 17 00:00:00 2001 From: itaiin Date: Mon, 17 Dec 2012 10:52:48 +0200 Subject: [PATCH] bugfix username keyword at paramiko login was not used --- plumbum/paramiko_machine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plumbum/paramiko_machine.py b/plumbum/paramiko_machine.py index 34b648ac1..acc3666be 100644 --- a/plumbum/paramiko_machine.py +++ b/plumbum/paramiko_machine.py @@ -134,14 +134,15 @@ class ParamikoMachine(BaseRemoteMachine): def __init__(self, host, user = None, port = None, password = None, keyfile = None, load_system_host_keys = True, missing_host_policy = None, encoding = "utf8"): self.host = host + kwargs = {} if user: self._fqhost = "%s@%s" % (user, host) + kwargs['username'] = user else: self._fqhost = host self._client = paramiko.SSHClient() if load_system_host_keys: self._client.load_system_host_keys() - kwargs = {} if port is not None: kwargs["port"] = port if keyfile is not None: