aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-03-14 10:22:58 +0100
committerMatus Fabian <matfabia@cisco.com>2016-03-14 10:22:58 +0100
commitccf53b184ac485946b54605048f67115d81f8ba9 (patch)
tree92f711b0e2567beccad2ceedff3b1fc73d2b7f82 /resources
parent8bb274ab4c9c00565746012a559e30ad7faedf8b (diff)
SSH connect use port specified in node dict
Change-Id: I4ed7d58466724e68dc7ad22f85f6e7703a6c7a64 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/ssh.py3
1 files changed, 2 insertions, 1 deletions
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