Signed-off-by: Jiří Župka <jzupka@xxxxxxxxxx> --- client/virt/virt_utils.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/client/virt/virt_utils.py b/client/virt/virt_utils.py index a2a73ec..552a402 100644 --- a/client/virt/virt_utils.py +++ b/client/virt/virt_utils.py @@ -4406,7 +4406,10 @@ def guest_active(vm): if isinstance(o, str): return "status: running" in o else: - return o.get("status") == "running" + if "status" in o: + return o.get("status") == "running" + else: + return o.get("running") def preprocess_images(bindir, params, env): -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html