From a25b0eed4f78e2577aaf00c9c7ab717a2d369432 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 20 Aug 2018 12:13:54 -0400 Subject: [PATCH] Replace valid_hypervisor_list with list Fixes #17 --- pvcd/NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvcd/NodeInstance.py b/pvcd/NodeInstance.py index bdb87021..953a2481 100644 --- a/pvcd/NodeInstance.py +++ b/pvcd/NodeInstance.py @@ -348,7 +348,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 = zkhandler.listchildren(zk_conn, '/nodes') current_hypervisor = zkhandler.readdata(zk_conn, '/domains/{}/hypervisor'.format(dom_uuid))