From 88b705953244dc3d7a18a43d1eae24c472196005 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 18 Jul 2018 21:32:57 -0400 Subject: [PATCH] Correct valid_hypervisor_list to be a list --- pvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvc.py b/pvc.py index 76e60a54..213fac82 100755 --- a/pvc.py +++ b/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')