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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user