mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	instances/view/instance do not refresh media_iso when no media present
This commit is contained in:
		
							parent
							
								
									15d7216368
								
							
						
					
					
						commit
						6cbad06f2c
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -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() | ||||
|         media_iso = sorted(conn.get_iso_media()) | ||||
|         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: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue