Fix #51
This commit is contained in:
		
							parent
							
								
									715dfef72d
								
							
						
					
					
						commit
						b382d69126
					
				
							
								
								
									
										2
									
								
								dist/vdiclient.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/vdiclient.json
									
									
									
									
										vendored
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
	"upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8",
 | 
			
		||||
	"version" : "1.1.02",
 | 
			
		||||
	"version" : "1.1.03",
 | 
			
		||||
	"product_name" : "VDI Client",
 | 
			
		||||
	"manufacturer" : "Josh Patten",
 | 
			
		||||
	"name" : "VDI Client",
 | 
			
		||||
 | 
			
		||||
@ -271,10 +271,14 @@ def vmaction(vmnode, vmid, vmtype):
 | 
			
		||||
			if startpop:
 | 
			
		||||
				startpop.close()
 | 
			
		||||
			return status
 | 
			
		||||
	try:
 | 
			
		||||
		if vmtype == 'qemu':
 | 
			
		||||
			spiceconfig = G.proxmox.nodes(vmnode).qemu(str(vmid)).spiceproxy.post()
 | 
			
		||||
		else: # Not sure this is even a thing, but here it is...
 | 
			
		||||
			spiceconfig = G.proxmox.nodes(vmnode).lxc(str(vmid)).spiceproxy.post()
 | 
			
		||||
	except proxmoxer.core.ResourceException as e:
 | 
			
		||||
		win_popup_button(f"Unable to connect to VM {vmid}:\n{e!r}\nIs SPICE display configured for your VM?", 'OK')
 | 
			
		||||
		return False
 | 
			
		||||
	confignode = ConfigParser()
 | 
			
		||||
	confignode['virt-viewer'] = {}
 | 
			
		||||
	for key, value in spiceconfig.items():
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user