Skip to content

Commit 723065b

Browse files
committed
thus, test case is mistake. config.get('ProxyCOmmand') is a str
1 parent 830b36d commit 723065b

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

sshfs/config.py

+13-17
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,16 @@ def parse_config(*, host, user=(), port=(), local_user=None, config_files=None):
3131
host,
3232
port,
3333
)
34-
else:
35-
canonical = False # Fixed typo
36-
final = False # Fixed typo
37-
config = SSHClientConfig.load(
38-
last_config,
39-
config_files,
40-
reload,
41-
canonical, # Use correct parameter
42-
final, # Use correct parameter
43-
local_user,
44-
user,
45-
host,
46-
port,
47-
)
48-
if config._options.get("ProxyCommand", None):
49-
config._options["ProxyCommand"] = config["ProxyCommand"].split()
50-
return config
34+
canonical = False # Fixed typo
35+
final = False # Fixed typo
36+
return SSHClientConfig.load(
37+
last_config,
38+
config_files,
39+
reload,
40+
canonical, # Use correct parameter
41+
final, # Use correct parameter
42+
local_user,
43+
user,
44+
host,
45+
port,
46+
)

0 commit comments

Comments
 (0)