Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8bb274a
)
SSH connect use port specified in node dict
26/526/1
author
Matus Fabian
<matfabia@cisco.com>
Mon, 14 Mar 2016 09:22:58 +0000
(10:22 +0100)
committer
Matus Fabian
<matfabia@cisco.com>
Mon, 14 Mar 2016 09:22:58 +0000
(10:22 +0100)
Change-Id: I4ed7d58466724e68dc7ad22f85f6e7703a6c7a64
Signed-off-by: Matus Fabian <matfabia@cisco.com>
resources/libraries/python/ssh.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/ssh.py
b/resources/libraries/python/ssh.py
index
2de6f4a
..
e121519
100644
(file)
--- 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