Update variable name to match
This commit is contained in:
parent
55f52bb3d7
commit
b7c7b5f647
|
@ -102,7 +102,7 @@ class NodeInstance():
|
||||||
most_memfree = memfree
|
most_memfree = memfree
|
||||||
target_hypervisor = hypervisor
|
target_hypervisor = hypervisor
|
||||||
|
|
||||||
if least_host == None:
|
if target_hypervisor == None:
|
||||||
print('>>> Failed to find migration target for VM "{}"; shutting down.'.format(dom_uuid))
|
print('>>> Failed to find migration target for VM "{}"; shutting down.'.format(dom_uuid))
|
||||||
transaction = self.zk.transaction()
|
transaction = self.zk.transaction()
|
||||||
transaction.set_data('/domains/{}/state'.format(dom_uuid), 'shutdown'.encode('ascii'))
|
transaction.set_data('/domains/{}/state'.format(dom_uuid), 'shutdown'.encode('ascii'))
|
||||||
|
|
Loading…
Reference in New Issue