mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
virsh: fix logic bug
Bug introduced in commit 9a0ec36
.
* tools/virsh.c (cmdUndefine): Add missing line.
This commit is contained in:
parent
cfe35a88f0
commit
2cc1ad61c7
@ -1449,6 +1449,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
|
if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
|
||||||
|
return false;
|
||||||
|
|
||||||
has_managed_save = virDomainHasManagedSaveImage(dom, 0);
|
has_managed_save = virDomainHasManagedSaveImage(dom, 0);
|
||||||
if (has_managed_save < 0) {
|
if (has_managed_save < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user