From 0dc10beab84c56941190bd6fd64c67b428f58f0e Mon Sep 17 00:00:00 2001 From: Will Nilges Date: Mon, 11 Jul 2022 00:38:14 -0400 Subject: [PATCH] Black --- proxstar/__init__.py | 1 + proxstar/vm.py | 2 +- proxstar/vnc.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/proxstar/__init__.py b/proxstar/__init__.py index ed6d9cd..40e74f5 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -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 diff --git a/proxstar/vm.py b/proxstar/vm.py index 896d206..9c823b0 100644 --- a/proxstar/vm.py +++ b/proxstar/vm.py @@ -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. diff --git a/proxstar/vnc.py b/proxstar/vnc.py index d884e14..1b6bbc5 100644 --- a/proxstar/vnc.py +++ b/proxstar/vnc.py @@ -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):