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

instances/view/instance do not refresh media_iso when no media present

This commit is contained in:
Ing. Jan KRCMAR 2018-02-15 10:54:39 +01:00
parent 15d7216368
commit 6cbad06f2c

View file

@ -314,7 +314,10 @@ def instance(request, compute_id, vname):
disks = conn.get_disk_device()
media = conn.get_media_device()
networks = conn.get_net_device()
if len(media) != 0:
media_iso = sorted(conn.get_iso_media())
else:
media_iso = []
vcpu_range = conn.get_max_cpus()
memory_range = [256, 512, 768, 1024, 2048, 4096, 6144, 8192, 16384]
if memory not in memory_range: