Skip to content

Commit

Permalink
update fields for open tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Jan 17, 2023
1 parent 0870a0b commit 7cec6a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/extensions/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def create_tunnel(
elif ssh_tunnel.private_key:
private_key_file = StringIO(ssh_tunnel.private_key)
private_key = RSAKey.from_private_key(private_key_file)
params["private_key"] = private_key
params["private_key_password"] = ssh_tunnel.private_key_password
params["ssh_pkey"] = private_key
params["ssh_private_key_password"] = ssh_tunnel.private_key_password

return open_tunnel(**params)

Expand Down

0 comments on commit 7cec6a2

Please sign in to comment.