Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion fs/sshfs/sshfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"""
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import annotations

import itertools
import os
import stat
import socket
import sys
from typing import Optional

import six
import paramiko
Expand Down Expand Up @@ -104,6 +106,7 @@ def __init__(
config_path='~/.ssh/config',
exec_timeout=None,
policy=None,
look_for_keys: Optional[bool]=None,
**kwargs
): # noqa: D102
super(SSHFS, self).__init__()
Expand Down Expand Up @@ -131,7 +134,7 @@ def __init__(
argdict = {
"pkey": pkey,
"key_filename": keyfile,
"look_for_keys": True if (pkey and keyfile) is None else False,
"look_for_keys": look_for_keys if look_for_keys is not None else (True if (pkey and keyfile) is None else False),
"compress": compress,
"timeout": timeout
}
Expand Down