fix bug #688: if vm is not owner of this disk remove from config

This commit is contained in:
Wolfgang Link 2015-08-20 10:34:59 +02:00 committed by Dietmar Maurer
parent a78ea5dfe9
commit 40b977f328

View File

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