Skip to content

Commit

Permalink
Merge pull request #52 from itaiin/master
Browse files Browse the repository at this point in the history
fixed a bug in paramiko machine login
  • Loading branch information
tomerfiliba committed Dec 17, 2012
2 parents 81d88f4 + eec1ba2 commit abf17bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plumbum/paramiko_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit abf17bc

Please sign in to comment.