virsh: fix logic bug

Bug introduced in commit 9a0ec36.

* tools/virsh.c (cmdUndefine): Add missing line.
This commit is contained in:
Eric Blake 2011-08-12 11:39:35 -06:00
parent cfe35a88f0
commit 2cc1ad61c7

View File

@ -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) {