Remove redundant try block

This commit is contained in:
Joshua Boniface 2019-05-11 00:47:50 -04:00
parent 516ea1b57c
commit 18a122c772
1 changed files with 1 additions and 5 deletions

View File

@ -287,11 +287,7 @@ class DomainInstance(object):
self.inmigrate = True self.inmigrate = True
self.logger.out('Migrating VM to node "{}"'.format(self.node), state='i', prefix='Domain {}:'.format(self.domuuid)) self.logger.out('Migrating VM to node "{}"'.format(self.node), state='i', prefix='Domain {}:'.format(self.domuuid))
try:
migrate_ret = self.live_migrate_vm(self.node) migrate_ret = self.live_migrate_vm(self.node)
except:
migrate_ret = True
if not migrate_ret: if not migrate_ret:
self.logger.out('Could not live migrate VM; shutting down to migrate instead', state='e', prefix='Domain {}:'.format(self.domuuid)) self.logger.out('Could not live migrate VM; shutting down to migrate instead', state='e', prefix='Domain {}:'.format(self.domuuid))
self.shutdown_vm() self.shutdown_vm()