Replace valid_hypervisor_list with list

Fixes #17
This commit is contained in:
Joshua Boniface 2018-08-20 12:13:54 -04:00
parent cffb9cff5c
commit a25b0eed4f
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,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 = zkhandler.listchildren(zk_conn, '/nodes') full_hypervisor_list = zkhandler.listchildren(zk_conn, '/nodes')
current_hypervisor = zkhandler.readdata(zk_conn, '/domains/{}/hypervisor'.format(dom_uuid)) current_hypervisor = zkhandler.readdata(zk_conn, '/domains/{}/hypervisor'.format(dom_uuid))