1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00: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

View File

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