mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
|
||||
if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
|
||||
return false;
|
||||
|
||||
has_managed_save = virDomainHasManagedSaveImage(dom, 0);
|
||||
if (has_managed_save < 0) {
|
||||
|
|
Loading…
Reference in New Issue