]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python/qemu: Add args property to the QEMUMachine class
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Fri, 30 Apr 2021 13:34:12 +0000 (10:34 -0300)
committerCleber Rosa <crosa@redhat.com>
Tue, 13 Jul 2021 17:24:38 +0000 (13:24 -0400)
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>
python/qemu/machine/machine.py

index 94846dd71b4a96a2307c53cda5b997d2c65066bd..971ed7e8c6a66481b6ed90761cf6b622030b8696 100644 (file)
@@ -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)