Fix: path_to_volume_id returned wrong content
type for backup files. Patch includes changes of the test as well. Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
committed by
Fabian Grünbichler
parent
e4dbfde31f
commit
892dc99249
@ -536,7 +536,7 @@ sub path_to_volume_id {
|
||||
return ('rootdir', "$sid:rootdir/$vmid");
|
||||
} elsif ($path =~ m!^$backupdir/([^/]+\.(tar|tar\.gz|tar\.lzo|tgz|vma|vma\.gz|vma\.lzo))$!) {
|
||||
my $name = $1;
|
||||
return ('iso', "$sid:backup/$name");
|
||||
return ('backup', "$sid:backup/$name");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user