mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
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.
This commit is contained in:
parent
c42e1c3947
commit
f858bcb2d6
@ -2346,7 +2346,7 @@ cmdSaveImageDefine(vshControl *ctl, const vshCmd *cmd)
|
|||||||
if (virFileReadAll(xmlfile, 8192, &xml) < 0)
|
if (virFileReadAll(xmlfile, 8192, &xml) < 0)
|
||||||
goto cleanup;
|
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);
|
vshError(ctl, _("Failed to update %s"), file);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user