[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v8 01/13] qemu.py: fix is_running() return befor
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCH v8 01/13] qemu.py: fix is_running() return before first launch() |
Date: |
Tue, 5 Sep 2017 10:57:33 +0800 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Fri, 09/01 13:28, Amador Pahim wrote:
> is_running() returns None when called before the first time we
> call launch():
>
> >>> import qemu
> >>> vm = qemu.QEMUMachine('qemu-system-x86_64')
> >>> vm.is_running()
> >>>
>
> It should return False instead. This patch fixes that.
>
> For consistence, this patch removes the parenthesis from the
> second clause as it's not really needed.
>
> Signed-off-by: Amador Pahim <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
[Qemu-devel] [PATCH v8 06/13] qemu.py: make sure we only remove files we create, Amador Pahim, 2017/09/01