1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00

fix if there is an exception int get_storage_images mac_auto and cache_mode does not work. So sequence change fixes that.

This commit is contained in:
catborise 2018-07-20 11:03:01 +03:00
parent 7862fa8fdf
commit 7200a34699

View file

@ -40,9 +40,9 @@ def create_instance(request, compute_id):
storages = sorted(conn.get_storages()) storages = sorted(conn.get_storages())
networks = sorted(conn.get_networks()) networks = sorted(conn.get_networks())
instances = conn.get_instances() instances = conn.get_instances()
get_images = sorted(conn.get_storages_images())
cache_modes = sorted(conn.get_cache_modes().items()) cache_modes = sorted(conn.get_cache_modes().items())
mac_auto = util.randomMAC() mac_auto = util.randomMAC()
get_images = sorted(conn.get_storages_images())
except libvirtError as lib_err: except libvirtError as lib_err:
error_messages.append(lib_err) error_messages.append(lib_err)