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

View File

@ -93,7 +93,7 @@ class NodeInstance(threading.Thread):
def unflush(self): def unflush(self):
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')[0].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()