Commit 68f31c10 authored by Antoine Millet's avatar Antoine Millet
Browse files

Migration now set autostart on migrated VM if needed

parent 1169431d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -179,6 +179,10 @@ class MigrationJob(Job):

                        source.proxy.vol_delete(pool, name)

            # Set autostart if source VM have this flag enabled:
            if vm.get('autostart', 'no') == 'yes':
                dest.proxy.vm_set_autostart(vm['h'])

            self.logger.info('Migration completed with success')

            # Release source and dest hypervisors: