[libvirt] [PATCH] Fix test driver 'restore' return value

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

 



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@xxxxxxxxxx>
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);
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]