From: Matus Fabian Date: Mon, 14 Mar 2016 09:22:58 +0000 (+0100) Subject: SSH connect use port specified in node dict X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=ccf53b184ac485946b54605048f67115d81f8ba9 SSH connect use port specified in node dict Change-Id: I4ed7d58466724e68dc7ad22f85f6e7703a6c7a64 Signed-off-by: Matus Fabian --- diff --git a/resources/libraries/python/ssh.py b/resources/libraries/python/ssh.py index 2de6f4a36e..e1215191af 100644 --- a/resources/libraries/python/ssh.py +++ b/resources/libraries/python/ssh.py @@ -56,7 +56,8 @@ class SSH(object): self._ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self._ssh.connect(node['host'], username=node['username'], - password=node.get('password'), pkey=pkey) + password=node.get('password'), pkey=pkey, + port=node['port']) SSH.__existing_connections[node_hash] = self._ssh