mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 09:30:05 +00:00
better cleanup logging for migration
if we migrate a vm we call cleanup but the logging looks like: Starting cleanup for 101 trying to acquire lock... OK Configuration file 'nodes/pve-ceph-01/qemu-server/101.conf' does not exist with this patch, we omit any logging in the case we do not have the config, since we cannot know what to clean up Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
88a7da8309
commit
0f56fff292
@ -753,6 +753,9 @@ __PACKAGE__->register_method({
|
||||
my $clean = $param->{'clean-shutdown'};
|
||||
my $guest = $param->{'guest-requested'};
|
||||
|
||||
# return if we do not have the config anymore
|
||||
return if !-f PVE::QemuConfig->config_file($vmid);
|
||||
|
||||
my $storecfg = PVE::Storage::config();
|
||||
warn "Starting cleanup for $vmid\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user