mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-22 18:44:49 +00:00
black and isort lint.
This commit is contained in:
parent
77d031b04f
commit
7aaa018d2c
47 changed files with 1206 additions and 1063 deletions
|
|
@ -4,13 +4,14 @@
|
|||
# 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):
|
||||
|
|
@ -57,7 +61,7 @@ def console(request):
|
|||
if console_type == "vnc" or console_type == "spice":
|
||||
console_page = "console-" + console_type + "-" + view_type + ".html"
|
||||
response = render(request, console_page, locals())
|
||||
else:
|
||||
else:
|
||||
if console_type is None:
|
||||
console_error = "Fail to get console. Please check the console configuration of your VM."
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue