[libvirt] [PATCH v2 1/4] virsh: net-port-create: log errors for non-existent xml file

morecache at gmail.com morecache at gmail.com
Wed Sep 16 07:17:34 UTC 2020


From: Lin Ma <lma at suse.de>

Signed-off-by: Lin Ma <lma at suse.de>
---
 tools/virsh-network.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index 0351a93f19..24bc9107fc 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -1523,6 +1523,7 @@ cmdNetworkPortCreate(vshControl *ctl, const vshCmd *cmd)
 
     ret = true;
  cleanup:
+    vshSaveLibvirtError();
     VIR_FREE(buffer);
     if (port)
         virNetworkPortFree(port);
-- 
2.26.0




More information about the libvir-list mailing list