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

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



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 redhat com>

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;
             }

-- 


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