partially revert follow up

see
https://pve.proxmox.com/pipermail/pve-devel/2019-June/037575.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2019-06-17 12:35:51 +02:00
parent f6f22cb3a2
commit de0cd0c2e0

View File

@ -689,7 +689,7 @@ sub free_image {
if (defined($format) && ($format eq 'subvol')) {
File::Path::remove_tree($path);
} else {
if (! -e $path) {
if (!(-f $path || -l $path)) {
warn "disk image '$path' does not exists\n";
return undef;
}