mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
lint with black python. convert f style strings to old one. some small fixes
This commit is contained in:
@@ -4,14 +4,13 @@
|
||||
# See the COPYING file in the top-level directory.
|
||||
|
||||
import functools
|
||||
import logging as log
|
||||
import os
|
||||
import queue
|
||||
import socket
|
||||
import signal
|
||||
import socket
|
||||
import threading
|
||||
|
||||
import logging as log
|
||||
|
||||
|
||||
class _TunnelScheduler(object):
|
||||
"""
|
||||
|
||||
@@ -6,7 +6,11 @@ from libvirt import libvirtError
|
||||
from appsettings.settings import app_settings
|
||||
from instances.models import Instance
|
||||
from vrtManager.instance import wvmInstance
|
||||
from webvirtcloud.settings import WS_PUBLIC_HOST, WS_PUBLIC_PATH, WS_PUBLIC_PORT
|
||||
from webvirtcloud.settings import (
|
||||
WS_PUBLIC_HOST,
|
||||
WS_PUBLIC_PATH,
|
||||
WS_PUBLIC_PORT,
|
||||
)
|
||||
|
||||
|
||||
def console(request):
|
||||
@@ -61,7 +65,7 @@ def console(request):
|
||||
if console_type is None:
|
||||
console_error = "Fail to get console. Please check the console configuration of your VM."
|
||||
else:
|
||||
console_error = f"Console type: {console_type} no support"
|
||||
console_error = "Console type '%(type)s' has not support" % {"type": console_type}
|
||||
response = render(request, "console-vnc-lite.html", locals())
|
||||
|
||||
response.set_cookie("token", token)
|
||||
|
||||
Reference in New Issue
Block a user