Correct valid_hypervisor_list to be a list

This commit is contained in:
Joshua Boniface 2018-07-18 21:32:57 -04:00
parent 22776cdaaa
commit 88b7059532
1 changed files with 1 additions and 1 deletions

2
pvc.py
View File

@ -370,7 +370,7 @@ def findTargetHypervisor(zk_conn, search_field, dom_uuid):
# Get the list of valid target hypervisors # Get the list of valid target hypervisors
def getHypervisors(zk_conn, dom_uuid): def getHypervisors(zk_conn, dom_uuid):
valid_hypervisor_list = {} valid_hypervisor_list = []
full_hypervisor_list = zk_conn.get_children('/nodes') full_hypervisor_list = zk_conn.get_children('/nodes')
current_hypervisor = zk_conn.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') current_hypervisor = zk_conn.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii')