This commit is contained in:
Joshua Boniface 2018-06-04 03:10:22 -04:00
parent e4b866bda5
commit 0709ccc003
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class NodeInstance(threading.Thread):
print('>>> Restoring node %s to active service' % self.name) print('>>> Restoring node %s to active service' % self.name)
for domain in self.s_domain: for domain in self.s_domain:
former_hypervisor = self.zk.get("/domains/" + domain + '/formerhypervisor').decode('ascii') former_hypervisor = self.zk.get("/domains/" + domain + '/formerhypervisor').decode('ascii')
if former_hypervisor = self.name: if former_hypervisor == self.name:
print(">>> Setting unmigration for %s" % domain) print(">>> Setting unmigration for %s" % domain)
transaction = self.zk.transaction() transaction = self.zk.transaction()
transaction.set_data('/domains/' + domain + '/state', 'migrate'.encode('ascii')) transaction.set_data('/domains/' + domain + '/state', 'migrate'.encode('ascii'))