mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Remove database ID dependency for SSH Tunnel creation (#26989)
This commit is contained in:
@@ -78,7 +78,7 @@ class UpdateDatabaseCommand(BaseCommand):
|
||||
if existing_ssh_tunnel_model is None:
|
||||
# We couldn't found an existing tunnel so we need to create one
|
||||
try:
|
||||
CreateSSHTunnelCommand(database.id, ssh_tunnel_properties).run()
|
||||
CreateSSHTunnelCommand(database, ssh_tunnel_properties).run()
|
||||
except (SSHTunnelInvalidError, SSHTunnelCreateFailedError) as ex:
|
||||
# So we can show the original message
|
||||
raise ex
|
||||
|
||||
Reference in New Issue
Block a user