followup: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -307,12 +307,12 @@ __PACKAGE__->register_method ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
PVE::Storage::vdisk_free ($cfg, $volid);
|
PVE::Storage::vdisk_free ($cfg, $volid);
|
||||||
if ($vtype eq 'backup' && $path =~
|
|
||||||
/(.*\/vzdump-\w+-\d+-\d{4}_\d{2}_\d{2}-\d{2}_\d{2}_\d{2})[^\/]+$/) {
|
if ($vtype eq 'backup'
|
||||||
|
&& $path =~ /(.*\/vzdump-\w+-\d+-\d{4}_\d{2}_\d{2}-\d{2}_\d{2}_\d{2})[^\/]+$/) {
|
||||||
my $logpath = "$1.log";
|
my $logpath = "$1.log";
|
||||||
if (-e $logpath) {
|
# try to cleanup our backup log file too, if still exisiting, #318
|
||||||
unlink($logpath);
|
unlink($logpath) if -e $logpath;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
|||||||
Reference in New Issue
Block a user