diff options
author | Wainer dos Santos Moschetta <wainersm@redhat.com> | 2021-04-30 10:34:12 -0300 |
---|---|---|
committer | Cleber Rosa <crosa@redhat.com> | 2021-07-13 13:24:38 -0400 |
commit | 555fe0c2a8d5c8a9b6dbf17670018cc2d8f062b3 (patch) | |
tree | 46def08e5e690aa116a32ec51ad129523b37f525 /python | |
parent | 2d14975963b831701363a1153a0db97dc19e0d2e (diff) | |
download | qemu-555fe0c2a8d5c8a9b6dbf17670018cc2d8f062b3.zip qemu-555fe0c2a8d5c8a9b6dbf17670018cc2d8f062b3.tar.gz qemu-555fe0c2a8d5c8a9b6dbf17670018cc2d8f062b3.tar.bz2 |
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/qemu/machine/machine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index 94846dd..971ed7e 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -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) |