From adaa7c8f7ff3499437d7ed6770113b558f517ef5 Mon Sep 17 00:00:00 2001 From: Tim Kreuzer <t.kreuzer@fz-juelich.de> Date: Fri, 2 Jun 2023 15:36:47 +0200 Subject: [PATCH] use new backendspawner --- custom/4.0.0/requirements.txt | 2 +- custom/4.0.0/spawner/api_setup_tunnel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom/4.0.0/requirements.txt b/custom/4.0.0/requirements.txt index cd22d48..d9d894c 100644 --- a/custom/4.0.0/requirements.txt +++ b/custom/4.0.0/requirements.txt @@ -1,4 +1,4 @@ jsonformatter==0.3.1 -jupyterhub-backendspawner==0.3.3 +jupyterhub-backendspawner==0.4.0 oauthenticator==14.2.0 # nodeenv==1.6.0 diff --git a/custom/4.0.0/spawner/api_setup_tunnel.py b/custom/4.0.0/spawner/api_setup_tunnel.py index c09465e..ba29dba 100644 --- a/custom/4.0.0/spawner/api_setup_tunnel.py +++ b/custom/4.0.0/spawner/api_setup_tunnel.py @@ -63,7 +63,7 @@ class SetupTunnelAPIHandler(APIHandler): ) json_body["servername"] = spawner.name - json_body["svc_port"] = await spawner.get_port() + json_body["svc_port"] = spawner.port json_body["svc_name"] = spawner.get_service_address().split(".")[0] labels = { "hub.jupyter.org/username": user.name, -- GitLab