From: Osier Yang Date: Thu, 22 Sep 2011 12:01:06 +0000 (+0800) Subject: virsh: Do not ignore the specified flags for cmdSaveImageDefine X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f858bcb2d6ed52b0b82f983f9130f9aeee14f3b9;p=libvirt.git virsh: Do not ignore the specified flags for cmdSaveImageDefine Introduced by commit 42c52d53c, which added the support for new flags, but forgot to update the API use to pass the flags. --- diff --git a/tools/virsh.c b/tools/virsh.c index e5ea9d7e49..7b0533dae8 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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; }