diff --git a/computes/templates/create_comp_block.html b/computes/templates/create_comp_block.html index 647ed45..870825d 100644 --- a/computes/templates/create_comp_block.html +++ b/computes/templates/create_comp_block.html @@ -1,7 +1,7 @@ {% load i18n %} {% load font_awesome %} {% load bootstrap4 %} -
+
{% trans "TCP" %} {% trans "SSH" %} {% trans "TLS" %} diff --git a/conf/requirements.txt b/conf/requirements.txt index 79f81f7..5d3fa00 100644 --- a/conf/requirements.txt +++ b/conf/requirements.txt @@ -1,4 +1,3 @@ -coverage==5.1 Django==2.2.12 django-bootstrap4 django-fa==1.0.0 diff --git a/console/novncd b/console/novncd index 4ed17be..d3aa445 100755 --- a/console/novncd +++ b/console/novncd @@ -7,7 +7,7 @@ import django DIR_PATH = os.path.dirname(os.path.abspath(__file__)) ROOT_PATH = os.path.abspath(os.path.join(DIR_PATH, '..', '')) -os.environ["DJANGO_SETTINGS_MODULE"] = "webvirtcloud.settings" +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webvirtcloud.settings') CERT = DIR_PATH + '/cert.pem' if ROOT_PATH not in sys.path: diff --git a/console/tunnel.py b/console/tunnel.py index c7c19d6..539a269 100644 --- a/console/tunnel.py +++ b/console/tunnel.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # This class provide from VirtManager project, from console.py # file. diff --git a/dev/requirements.txt b/dev/requirements.txt index 6f527ed..8cdffcc 100644 --- a/dev/requirements.txt +++ b/dev/requirements.txt @@ -1,4 +1,5 @@ -r ../conf/requirements.txt +coverage==5.1 pycodestyle pyflakes==2.2.0 pylint==2.5.2 diff --git a/secrets/views.py b/secrets/views.py index ae5eeda..3bcc580 100644 --- a/secrets/views.py +++ b/secrets/views.py @@ -45,7 +45,7 @@ def secrets(request, compute_id): try: secrt_value = conn.get_secret_value(uuid) except libvirtError as lib_err: - secret_value = None + secrt_value = None secrets_all.append({ 'usage': secrt.usageID(), 'uuid': secrt.UUIDString(),