From 66f6189de8cad2914a8acb24c142e2077e3410bd Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Fri, 24 Feb 2023 14:32:26 -0800 Subject: [PATCH] fix(sshtunnel): argument params to properly setting `server_port` (#23196) (cherry picked from commit 196e3eac8ba88ec9adb79e8ff278c6cc375f1ec0) --- superset/extensions/ssh.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/extensions/ssh.py b/superset/extensions/ssh.py index aaae808f19b12..8fb235618c779 100644 --- a/superset/extensions/ssh.py +++ b/superset/extensions/ssh.py @@ -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,),