handle uppercase hostname
This commit is contained in:
		
							parent
							
								
									ec1edfbebc
								
							
						
					
					
						commit
						1df4f4dd13
					
				@ -253,7 +253,7 @@ def vmaction(vmnode, vmid, vmtype):
 | 
				
			|||||||
	confignode['virt-viewer'] = {}
 | 
						confignode['virt-viewer'] = {}
 | 
				
			||||||
	for key,value in spiceconfig.items():
 | 
						for key,value in spiceconfig.items():
 | 
				
			||||||
		if key == 'proxy':
 | 
							if key == 'proxy':
 | 
				
			||||||
			val = value[7:]
 | 
								val = value[7:].lower()
 | 
				
			||||||
			if val in G.spiceproxy_conv:
 | 
								if val in G.spiceproxy_conv:
 | 
				
			||||||
				confignode['virt-viewer'][key] = f'http://{G.spiceproxy_conv[val]}'
 | 
									confignode['virt-viewer'][key] = f'http://{G.spiceproxy_conv[val]}'
 | 
				
			||||||
			else:
 | 
								else:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user