Useful if some code gets a QEMUMachine object in unknown state, and wants to launch it only if necessary.
Signed-off-by: Eduardo Habkost <[email protected]> --- scripts/qemu.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/qemu.py b/scripts/qemu.py index d25fe030bb..d32b923a15 100644 --- a/scripts/qemu.py +++ b/scripts/qemu.py @@ -236,6 +236,9 @@ class QEMUMachine(object): self._launched = False + def is_launched(self): + return self._launched + def launch(self): """ Launch the VM and make sure we cleanup and expose the -- 2.14.3
