[Autotest][PATCH 10/12] virt: Adds support for new QMP status command output.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux