Asyncio qemu fix and raise error if coroutine not used

This commit is contained in:
Julien Duponchelle
2015-10-12 16:26:07 +02:00
parent 5cb2b33a99
commit 91c2bd7e98
2 changed files with 4 additions and 1 deletions

View File

@ -870,7 +870,7 @@ class QemuVM(BaseVM):
log.error("Could not start QEMU {}: {}\n{}".format(self.qemu_path, e, stdout))
raise QemuError("Could not start QEMU {}: {}\n{}".format(self.qemu_path, e, stdout))
self._set_process_priority()
yield from self._set_process_priority()
if self._cpu_throttling:
self._set_cpu_throttling()