From 7200a34699b2e3e7f94a40e6d5f26a9b42270d8d Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 20 Jul 2018 11:03:01 +0300 Subject: [PATCH] fix if there is an exception int get_storage_images mac_auto and cache_mode does not work. So sequence change fixes that. --- create/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create/views.py b/create/views.py index 6c223da..24b9024 100644 --- a/create/views.py +++ b/create/views.py @@ -40,9 +40,9 @@ def create_instance(request, compute_id): storages = sorted(conn.get_storages()) networks = sorted(conn.get_networks()) instances = conn.get_instances() - get_images = sorted(conn.get_storages_images()) cache_modes = sorted(conn.get_cache_modes().items()) mac_auto = util.randomMAC() + get_images = sorted(conn.get_storages_images()) except libvirtError as lib_err: error_messages.append(lib_err)