Fix bad variable interpolation

This commit is contained in:
Joshua Boniface 2021-06-13 14:37:23 -04:00
parent be9f1e8636
commit 26b1f531e9
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class VMInstance(object):
self.this_node.domain_list.append(self.domuuid) self.this_node.domain_list.append(self.domuuid)
# Push the change up to Zookeeper # Push the change up to Zookeeper
self.zkhandler.write([ self.zkhandler.write([
(('node.running_domains', self.this_node_name), ' '.join(self.this_node.domain_list)) (('node.running_domains', self.this_node.name), ' '.join(self.this_node.domain_list))
]) ])
except Exception as e: except Exception as e:
self.logger.out('Error adding domain to list: {}'.format(e), state='e') self.logger.out('Error adding domain to list: {}'.format(e), state='e')
@ -212,7 +212,7 @@ class VMInstance(object):
self.this_node.domain_list.remove(self.domuuid) self.this_node.domain_list.remove(self.domuuid)
# Push the change up to Zookeeper # Push the change up to Zookeeper
self.zkhandler.write([ self.zkhandler.write([
(('node.running_domains', self.this_node_name), ' '.join(self.this_node.domain_list)) (('node.running_domains', self.this_node.name), ' '.join(self.this_node.domain_list))
]) ])
except Exception as e: except Exception as e:
self.logger.out('Error removing domain from list: {}'.format(e), state='e') self.logger.out('Error removing domain from list: {}'.format(e), state='e')