]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Do not ignore the specified flags for cmdSaveImageDefine
authorOsier Yang <jyang@redhat.com>
Thu, 22 Sep 2011 12:01:06 +0000 (20:01 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 22 Sep 2011 12:22:54 +0000 (20:22 +0800)
Introduced by commit 42c52d53c, which added the support for new
flags, but forgot to update the API use to pass the flags.

tools/virsh.c

index e5ea9d7e49ff09880a4f3b9985303c065f5159b8..7b0533dae8a96a56b92f426773e5c525d9f4e3c0 100644 (file)
@@ -2346,7 +2346,7 @@ cmdSaveImageDefine(vshControl *ctl, const vshCmd *cmd)
     if (virFileReadAll(xmlfile, 8192, &xml) < 0)
         goto cleanup;
 
-    if (virDomainSaveImageDefineXML(ctl->conn, file, xml, 0) < 0) {
+    if (virDomainSaveImageDefineXML(ctl->conn, file, xml, flags) < 0) {
         vshError(ctl, _("Failed to update %s"), file);
         goto cleanup;
     }