mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 03:54: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:
parent
7862fa8fdf
commit
7200a34699
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue