From af6f0f359b4982e38f070a15cd5e67b2a134a5e2 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Fri, 1 May 2020 18:58:54 +0200 Subject: [PATCH] Fixed bug in calling the get_tunnel_host function. --- services/webapp/code/rosetta/base_app/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/webapp/code/rosetta/base_app/views.py b/services/webapp/code/rosetta/base_app/views.py index 8b322b8..c8a3e2e 100644 --- a/services/webapp/code/rosetta/base_app/views.py +++ b/services/webapp/code/rosetta/base_app/views.py @@ -8,7 +8,7 @@ from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from django.shortcuts import redirect from .models import Profile, LoginToken, Task, TaskStatuses, Container, Computing, Keys, ComputingSysConf, ComputingUserConf -from .utils import send_email, format_exception, timezonize, os_shell, booleanize, debug_param +from .utils import send_email, format_exception, timezonize, os_shell, booleanize, debug_param, get_tunnel_host from .decorators import public_view, private_view from .exceptions import ErrorMessage @@ -339,7 +339,6 @@ def tasks(request): subprocess.Popen(background_tunnel_command, shell=True) # Ok, now redirect to the task through the tunnel - from utils import get_tunnel_host tunnel_host = get_tunnel_host() return redirect('http://{}:{}'.format(tunnel_host,task.tunnel_port)) -- GitLab