1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-22 16:26:09 +01:00

ssh: fix: do not attempt to check mode of keyfile if it has not been specified.

This commit is contained in:
Sergei Trofimov
2015-05-14 11:27:50 +01:00
parent 48748797b7
commit 26dfe97ffd

@ -120,7 +120,7 @@ class SshShell(object):
self.host = host self.host = host
self.username = username self.username = username
self.password = password self.password = password
self.keyfile = check_keyfile(keyfile) self.keyfile = check_keyfile(keyfile) if keyfile else keyfile
self.port = port self.port = port
timeout = self.timeout if timeout is None else timeout timeout = self.timeout if timeout is None else timeout
self.conn = ssh_get_shell(host, username, password, self.keyfile, port, timeout, telnet) self.conn = ssh_get_shell(host, username, password, self.keyfile, port, timeout, telnet)