From e7ecf2935985d5b4252fbc50cb576b9c4bf6367e Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 20 Jul 2018 13:42:13 +0300 Subject: [PATCH] volume filename extensions reorganized. --- instances/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index 162dd18..1492cf7 100644 --- a/instances/views.py +++ b/instances/views.py @@ -365,7 +365,11 @@ def instance(request, compute_id, vname): cache_modes = sorted(conn.get_cache_modes().items()) default_cache = settings.INSTANCE_VOLUME_DEFAULT_CACHE default_format = settings.INSTANCE_VOLUME_DEFAULT_FORMAT + default_extension = settings.INSTANCE_VOLUME_DEFAULT_FILE_EXTENSION formats = conn.get_image_formats() + extensions = conn.get_file_extensions() + + busses = conn.get_busses() default_bus = settings.INSTANCE_VOLUME_DEFAULT_BUS show_access_root_password = settings.SHOW_ACCESS_ROOT_PASSWORD @@ -908,7 +912,7 @@ def inst_graph(request, compute_id, vname): @login_required def guess_mac_address(request, vname): dhcp_file = '/srv/webvirtcloud/dhcpd.conf' - data = { 'vname': vname, 'mac': '52:54:00:' } + data = {'vname': vname, 'mac': '52:54:00:'} if os.path.isfile(dhcp_file): with open(dhcp_file, 'r') as f: name_found = False