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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user