mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	lxml change
This commit is contained in:
		
							parent
							
								
									ace30ca952
								
							
						
					
					
						commit
						a933ffb00f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -169,8 +169,8 @@ class wvmNetwork(wvmConnect):
 | 
			
		|||
        def network(doc):
 | 
			
		||||
            result = []
 | 
			
		||||
            for net in doc.xpath('/network/ip/dhcp/host'):
 | 
			
		||||
                host = net.xpath('@ip')[0].text
 | 
			
		||||
                mac = net.xpathEval('@mac')[0].text
 | 
			
		||||
                host = net.xpath('@ip')[0]
 | 
			
		||||
                mac = net.xpathEval('@mac')[0]
 | 
			
		||||
                result.append({'host': host, 'mac': mac})
 | 
			
		||||
            return result
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue