Update variable name to match

This commit is contained in:
Joshua Boniface 2018-06-06 21:28:58 -04:00
parent 55f52bb3d7
commit b7c7b5f647
1 changed files with 1 additions and 1 deletions

View File

@ -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'))