Ensure migration method is updated on state changes

This commit is contained in:
Joshua Boniface 2021-06-22 03:20:15 -04:00
parent 7d2a3b5361
commit 2928d695c9
1 changed files with 1 additions and 0 deletions

View File

@ -722,6 +722,7 @@ class VMInstance(object):
self.state = self.zkhandler.read(('domain.state', self.domuuid))
self.node = self.zkhandler.read(('domain.node', self.domuuid))
self.lastnode = self.zkhandler.read(('domain.last_node', self.domuuid))
self.migration_method = self.zkhandler.read(('domain.meta.migrate_method', self.domuuid))
# Check the current state of the VM
try: