Loading ccserver/jobs.py +2 −4 Original line number Diff line number Diff line Loading @@ -290,10 +290,8 @@ class ColdMigrationJob(BaseMigrationJob): raise JobCancelError('author have no right to migrate to this hv') # Update the VM object: try: self.manager.server.objects.update(ids=(vm_id,)) vm = self.manager.server.objects.get_by_id(vm_id) except UnknownObjectError: vm = self.manager.server.db.get_by_id(vm_id) if vm is None: raise JobCancelError('Source VM not found') # Get the source and destination hv clients: Loading Loading
ccserver/jobs.py +2 −4 Original line number Diff line number Diff line Loading @@ -290,10 +290,8 @@ class ColdMigrationJob(BaseMigrationJob): raise JobCancelError('author have no right to migrate to this hv') # Update the VM object: try: self.manager.server.objects.update(ids=(vm_id,)) vm = self.manager.server.objects.get_by_id(vm_id) except UnknownObjectError: vm = self.manager.server.db.get_by_id(vm_id) if vm is None: raise JobCancelError('Source VM not found') # Get the source and destination hv clients: Loading