mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: domain: fix mistake in cmdMigrateSetMaxDowntime()
If there was added a new return value indicating success to the function virDomainMigrateSetMaxDowntime() in the future, because of the way the function is called it would be treated it as an error state and would return false (indicating failure). This patch fixes it, so that the call of the function follows the same pattern as is currently set in libvirt. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7c98320278
commit
0987edbedf
@ -11000,7 +11000,7 @@ cmdMigrateSetMaxDowntime(vshControl *ctl, const vshCmd *cmd)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (virDomainMigrateSetMaxDowntime(dom, downtime, 0))
|
||||
if (virDomainMigrateSetMaxDowntime(dom, downtime, 0) < 0)
|
||||
goto done;
|
||||
|
||||
ret = true;
|
||||
|
Loading…
Reference in New Issue
Block a user