Correct valid_hypervisor_list to be a list
This commit is contained in:
		
							
								
								
									
										2
									
								
								pvc.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pvc.py
									
									
									
									
									
								
							| @@ -370,7 +370,7 @@ def findTargetHypervisor(zk_conn, search_field, dom_uuid): | ||||
|  | ||||
| # Get the list of valid target hypervisors | ||||
| def getHypervisors(zk_conn, dom_uuid): | ||||
|     valid_hypervisor_list = {} | ||||
|     valid_hypervisor_list = [] | ||||
|     full_hypervisor_list = zk_conn.get_children('/nodes') | ||||
|     current_hypervisor = zk_conn.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user