mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
virsh: Fix return code for dump
After the commit dc0771c, ret variable no longer represents the status of the return code, use data->ret replace it. Signed-off-by: Xu Yandong <xuyandong2@huawei.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7b0f46343c
commit
5534e4e659
@ -5522,7 +5522,6 @@ static bool
|
||||
cmdDump(vshControl *ctl, const vshCmd *cmd)
|
||||
{
|
||||
virDomainPtr dom;
|
||||
bool ret = false;
|
||||
bool verbose = false;
|
||||
const char *name = NULL;
|
||||
const char *to = NULL;
|
||||
@ -5556,12 +5555,12 @@ cmdDump(vshControl *ctl, const vshCmd *cmd)
|
||||
|
||||
virThreadJoin(&workerThread);
|
||||
|
||||
if (!ret)
|
||||
if (!data.ret)
|
||||
vshPrintExtra(ctl, _("\nDomain %s dumped to %s\n"), name, to);
|
||||
|
||||
cleanup:
|
||||
virshDomainFree(dom);
|
||||
return !ret;
|
||||
return !data.ret;
|
||||
}
|
||||
|
||||
static const vshCmdInfo info_screenshot[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user