mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Black
This commit is contained in:
parent
4ec51ea611
commit
0dc10beab8
3 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,7 @@ import logging
|
|||
import subprocess
|
||||
import psutil
|
||||
import psycopg2
|
||||
|
||||
# from gunicorn_conf import start_websockify
|
||||
import rq_dashboard
|
||||
from rq import Queue
|
||||
|
|
|
@ -271,7 +271,7 @@ class VM:
|
|||
# command='change vnc 127.0.0.1:{}'.format(port)
|
||||
# )
|
||||
|
||||
def configure_vnc_in_vm_config():#self, ssh_user, ssh_pass):
|
||||
def configure_vnc_in_vm_config(): # self, ssh_user, ssh_pass):
|
||||
"""Sets the vm up for VNC. Enables it to open a socket on localhost
|
||||
with a pre-determined password, which proxstar can then proxy to a noVNC
|
||||
instance.
|
||||
|
|
|
@ -119,7 +119,7 @@ def start_ssh_tunnel(node, port):
|
|||
return server
|
||||
|
||||
|
||||
def stop_ssh_tunnel():#vmid, ssh_tunnels):
|
||||
def stop_ssh_tunnel(): # vmid, ssh_tunnels):
|
||||
# FIXME (willnilges): Dead code. Delete this function.
|
||||
# Tear down the SSH tunnel and VNC target entry for a given VM
|
||||
print(f'This code is useless')
|
||||
|
@ -133,7 +133,7 @@ def stop_ssh_tunnel():#vmid, ssh_tunnels):
|
|||
# except:
|
||||
# pass
|
||||
# ssh_tunnels.remove(tunnel)
|
||||
# delete_vnc_target(port)
|
||||
# delete_vnc_target(port)
|
||||
|
||||
|
||||
def send_stop_ssh_tunnel(vmid):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue