Skip to content

Commit

Permalink
fix(sshtunnel): argument params to properly setting server_port (ap…
Browse files Browse the repository at this point in the history
…ache#23196)

(cherry picked from commit 196e3ea)
  • Loading branch information
hughhhh authored and sadpandajoe committed Feb 27, 2023
1 parent 5eb8bec commit 66f6189
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/extensions/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def create_tunnel(
) -> SSHTunnelForwarder:
url = make_url_safe(sqlalchemy_database_uri)
params = {
"ssh_address_or_host": ssh_tunnel.server_address,
"ssh_port": ssh_tunnel.server_port,
"ssh_address_or_host": (ssh_tunnel.server_address, ssh_tunnel.server_port),
"ssh_username": ssh_tunnel.username,
"remote_bind_address": (url.host, url.port), # bind_port, bind_host
"local_bind_address": (self.local_bind_address,),
Expand Down

0 comments on commit 66f6189

Please sign in to comment.