mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 19:20:11 +00:00
do not raise exceptions in vm_stop_cleanup
This commit is contained in:
parent
4d81a1d327
commit
745fed70c0
@ -2569,10 +2569,13 @@ sub get_vm_volumes {
|
||||
sub vm_stop_cleanup {
|
||||
my ($storecfg, $vmid, $conf) = @_;
|
||||
|
||||
eval {
|
||||
fairsched_rmnod($vmid); # try to destroy group
|
||||
|
||||
my $vollist = get_vm_volumes($conf);
|
||||
PVE::Storage::deactivate_volumes($storecfg, $vollist);
|
||||
};
|
||||
warn $@ if $@; # avoid errors - just warn
|
||||
}
|
||||
|
||||
# Note: use $nockeck to skip tests if VM configuration file exists.
|
||||
|
Loading…
Reference in New Issue
Block a user