Commit b77c5558 authored by Antoine Millet's avatar Antoine Millet


parent 919a6926
......@@ -233,7 +233,7 @@ class KillOldCliJob(BaseJob):
maxidle = self.get('maxidle')
assert maxidle is not None, 'maxidle is None'
delay = self.get('delay', self.DEFAULT_DELAY)
while True:
for client in self.manager.server.iter_connected_role('cli'):
......@@ -279,7 +279,7 @@ class ColdMigrationJob(BaseMigrationJob):
# Cancel the job if the user has not the right to migrate the vm or to
# select an hypervisor as destination:
right_check = self.manager.server.check
tql = 'id=%s' % vm_id
if not right_check(self['author'], 'coldmigrate', tql):
raise JobCancelError('author have no rights to migrate this VM')
......@@ -464,7 +464,7 @@ class JobsManager(object):
if jobtype is None:
raise BadJobTypeError('Invalid job type %r' % jtype)
job = jobtype(self, id=jobid, **kwargs)
self._jobs[jobid] = job
job.daemon = True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment