Message ID | 20180329213857.15499-11-ehabkost@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/qemu.py b/scripts/qemu.py index e82540a235..226d2c4d48 100644 --- a/scripts/qemu.py +++ b/scripts/qemu.py @@ -225,6 +225,8 @@ class QEMUMachine(object): shutil.rmtree(self._temp_dir) self._temp_dir = None + self._launched = False + def launch(self): """ Launch the VM and make sure we cleanup and expose the @@ -286,8 +288,6 @@ class QEMUMachine(object): command = '' LOG.warn(msg, exitcode, command) - self._launched = False - def qmp(self, cmd, conv_keys=True, **args): '''Invoke a QMP command and return the response dict''' qmp_args = dict()
This will allow a sequence like: vm.launch() vm.cmd('quit') vm.wait() # triggers post-shutdown code vm.launch() to work. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- scripts/qemu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)