[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH] Fix test driver 'restore' return value
- From: Cole Robinson <crobinso redhat com>
- To: Libvirt <libvir-list redhat com>
- Subject: [libvirt] [PATCH] Fix test driver 'restore' return value
- Date: Thu, 02 Apr 2009 14:00:07 -0400
The return value for domain restore in the test driver isn't consistent
with the API, and as such virsh will report failure even if the restore
succeeds. The attached patch fixes this.
Thanks,
Cole
commit 5fd0612bae3e67bd1496cf175b742fea962d9977
Author: Cole Robinson <crobinso redhat com>
Date: Thu Apr 2 13:49:40 2009 -0400
Fix test driver domain restore return value.
diff --git a/src/test.c b/src/test.c
index a5422e9..a518737 100644
--- a/src/test.c
+++ b/src/test.c
@@ -1337,7 +1337,7 @@ static int testDomainRestore(virConnectPtr conn,
event = virDomainEventNewFromObj(dom,
VIR_DOMAIN_EVENT_STARTED,
VIR_DOMAIN_EVENT_STARTED_RESTORED);
- ret = dom->def->id;
+ ret = 0;
cleanup:
virDomainDefFree(def);
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]