[patch 7/9] Dont overwrite error from qemudSaveConfig()

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

 



qemudSaveConfig() will always report a more specific error, so
we should avoid overwriting this error.

Note, Dan originally folded this into his qemu patches, but
it looks to have since been lost.

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>

Index: libvirt/qemud/conf.c
===================================================================
--- libvirt.orig/qemud/conf.c
+++ libvirt/qemud/conf.c
@@ -1087,8 +1087,6 @@ struct qemud_vm *qemudLoadConfigXML(stru
             }
 
             if (qemudSaveConfig(server, vm) < 0) {
-                qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
-                                 "cannot save config file for guest");
                 qemudFreeVM(vm);
                 return NULL;
             }

-- 


[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]