Use correct ZK node ID
This commit is contained in:
parent
88b7059532
commit
87bf47c6d0
2
pvc.py
2
pvc.py
|
@ -414,7 +414,7 @@ def findTargetHypervisorLoad(zk_conn, dom_uuid):
|
||||||
|
|
||||||
hypervisor_list = getHypervisors(zk_conn, dom_uuid)
|
hypervisor_list = getHypervisors(zk_conn, dom_uuid)
|
||||||
for hypervisor in hypervisor_list:
|
for hypervisor in hypervisor_list:
|
||||||
load = int(zk_conn.get('/nodes/{}/load'.format(hypervisor))[0].decode('ascii'))
|
load = int(zk_conn.get('/nodes/{}/cpuload'.format(hypervisor))[0].decode('ascii'))
|
||||||
|
|
||||||
if load < least_load:
|
if load < least_load:
|
||||||
least_load = load
|
least_load = load
|
||||||
|
|
Loading…
Reference in New Issue