]> git.proxmox.com Git - qemu-server.git/commitdiff
fix bug #688: if vm is not owner of this disk remove from config
authorWolfgang Link <w.link@proxmox.com>
Thu, 20 Aug 2015 08:34:59 +0000 (10:34 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 20 Aug 2015 10:28:50 +0000 (12:28 +0200)
PVE/QemuServer.pm

index 5ba8e1c786be593ee9e98a9e73ef506b75aa32ec..71150077b7782dff38764b17d4759484a129019e 100644 (file)
@@ -4038,6 +4038,9 @@ sub try_deallocate_drive {
                   if $used_paths->{$path};
            PVE::Storage::vdisk_free($storecfg, $volid);
            return 1;
+       } else {
+           # If vm is not owner of this disk remove from config
+           return 1;
        }
     }