This commit is contained in:
Will Nilges 2022-07-11 00:38:14 -04:00
parent 4ec51ea611
commit 0dc10beab8
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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.

View file

@ -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):