If VM is already alive, we should also return True in virsh_start().
Signed-off-by: Tang Chen <[email protected]>
---
client/virt/libvirt_vm.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py
index d7eb7b0..785237e 100644
--- a/client/virt/libvirt_vm.py
+++ b/client/virt/libvirt_vm.py
@@ -260,7 +260,7 @@ def virsh_start(name, uri = ""):
@param name: VM name
"""
if virsh_is_alive(name, uri):
- return
+ return True
try:
virsh_cmd("start %s" % (name), uri)
return True
--
1.7.3.1
--
Best Regards,
Tang chen
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest