You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/01/17 23:25:01 UTC
[superset] branch ssh-tunnel-update-params created (now 7cec6a29bb)
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a change to branch ssh-tunnel-update-params
in repository https://gitbox.apache.org/repos/asf/superset.git
at 7cec6a29bb update fields for open tunnel
This branch includes the following new commits:
new 7cec6a29bb update fields for open tunnel
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[superset] 01/01: update fields for open tunnel
Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch ssh-tunnel-update-params
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7cec6a29bb99c69d16f7d61230eae9d3901bee26
Author: hughhhh <hu...@gmail.com>
AuthorDate: Wed Jan 18 01:24:17 2023 +0200
update fields for open tunnel
---
superset/extensions/ssh.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/extensions/ssh.py b/superset/extensions/ssh.py
index caae3f12dd..ec9c781bee 100644
--- a/superset/extensions/ssh.py
+++ b/superset/extensions/ssh.py
@@ -63,8 +63,8 @@ class SSHManager:
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)