mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 02:58:29 +00:00
python/qemu: Add args property to the QEMUMachine class
This added the args property to QEMUMachine so that users of the class can access and handle the list of arguments to be given to the QEMU binary. Reviewed-by: Cleber Rosa <crosa@redhat.com> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Message-Id: <20210430133414.39905-6-wainersm@redhat.com> Signed-off-by: Cleber Rosa <crosa@redhat.com>
This commit is contained in:
committed by
Cleber Rosa
parent
2d14975963
commit
555fe0c2a8
@@ -316,6 +316,11 @@ class QEMUMachine:
|
||||
args.extend(['-device', device])
|
||||
return args
|
||||
|
||||
@property
|
||||
def args(self) -> List[str]:
|
||||
"""Returns the list of arguments given to the QEMU binary."""
|
||||
return self._args
|
||||
|
||||
def _pre_launch(self) -> None:
|
||||
if self._console_set:
|
||||
self._remove_files.append(self._console_address)
|
||||
|
||||
Reference in New Issue
Block a user