Show More
@@ -231,7 +231,7 b' class Client(object):' | |||||
231 | password = getpass("SSH Password for %s: "%sshserver) |
|
231 | password = getpass("SSH Password for %s: "%sshserver) | |
232 | ssh_kwargs = dict(keyfile=sshkey, password=password, paramiko=paramiko) |
|
232 | ssh_kwargs = dict(keyfile=sshkey, password=password, paramiko=paramiko) | |
233 |
|
233 | |||
234 | if os.path.isfile(exec_key): |
|
234 | if exec_key is not None and os.path.isfile(exec_key): | |
235 | arg = 'keyfile' |
|
235 | arg = 'keyfile' | |
236 | else: |
|
236 | else: | |
237 | arg = 'key' |
|
237 | arg = 'key' |
General Comments 0
You need to be logged in to leave comments.
Login now