Skip to content
Snippets Groups Projects
Commit 80cdd0e2 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Moved to using the computing host instead of the agent-reported IP address for...

Moved to using the computing host instead of the agent-reported IP address for standalone computing resources.
parent c7f72c7e
No related branches found
No related tags found
No related merge requests found
...@@ -310,6 +310,9 @@ print(port) ...@@ -310,6 +310,9 @@ print(port)
elif action=='set_ip_port': elif action=='set_ip_port':
if task.computing.type == 'standalone':
_, task_interface_ip, _, _ = get_ssh_access_mode_credentials(task.computing, task.user)
else:
task_interface_ip = request.GET.get('ip', None) task_interface_ip = request.GET.get('ip', None)
if not task_interface_ip: if not task_interface_ip:
return HttpResponse('IP not valid (got "{}")'.format(task_interface_ip)) return HttpResponse('IP not valid (got "{}")'.format(task_interface_ip))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment