Commit f4013899 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed locking of an hv client (lock become hvlock)

parent 0592835e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ class ColdMigrationJob(BaseMigrationJob):
        self.report('waiting lock for source and dest hypervisors')
        logging.info('Job-%s: Trying to acquire locks', self['id'])

        with AcquiresAllOrNone(source.lock, dest.lock):
        with AcquiresAllOrNone(source.hvlock, dest.hvlock):
            logging.info('Job-%s: Locks acquired', self['id'])
            self.checkpoint()