Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ExaCT
Rosetta
Commits
af6f0f35
Commit
af6f0f35
authored
5 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in calling the get_tunnel_host function.
parent
ab87a008
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/webapp/code/rosetta/base_app/views.py
+1
-2
1 addition, 2 deletions
services/webapp/code/rosetta/base_app/views.py
with
1 addition
and
2 deletions
services/webapp/code/rosetta/base_app/views.py
+
1
−
2
View file @
af6f0f35
...
@@ -8,7 +8,7 @@ from django.http import HttpResponse, HttpResponseRedirect
...
@@ -8,7 +8,7 @@ from django.http import HttpResponse, HttpResponseRedirect
from
django.contrib.auth.models
import
User
from
django.contrib.auth.models
import
User
from
django.shortcuts
import
redirect
from
django.shortcuts
import
redirect
from
.models
import
Profile
,
LoginToken
,
Task
,
TaskStatuses
,
Container
,
Computing
,
Keys
,
ComputingSysConf
,
ComputingUserConf
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
.decorators
import
public_view
,
private_view
from
.exceptions
import
ErrorMessage
from
.exceptions
import
ErrorMessage
...
@@ -339,7 +339,6 @@ def tasks(request):
...
@@ -339,7 +339,6 @@ def tasks(request):
subprocess
.
Popen
(
background_tunnel_command
,
shell
=
True
)
subprocess
.
Popen
(
background_tunnel_command
,
shell
=
True
)
# Ok, now redirect to the task through the tunnel
# Ok, now redirect to the task through the tunnel
from
utils
import
get_tunnel_host
tunnel_host
=
get_tunnel_host
()
tunnel_host
=
get_tunnel_host
()
return
redirect
(
'
http://{}:{}
'
.
format
(
tunnel_host
,
task
.
tunnel_port
))
return
redirect
(
'
http://{}:{}
'
.
format
(
tunnel_host
,
task
.
tunnel_port
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment