Fix issue when calling reset_console with running VPCS and Qemu nodes. Ref #1619

This commit is contained in:
grossmj
2022-12-30 20:54:37 +08:00
parent 85679aaa94
commit 1148dbc48e
5 changed files with 34 additions and 10 deletions

View File

@ -1567,6 +1567,15 @@ class QemuVM(BaseNode):
self._process = None
return False
async def reset_console(self):
"""
Reset console
"""
await self.stop_wrap_console()
if self.is_running():
await self.start_wrap_console()
def command(self):
"""
Returns the QEMU command line.