factoring out regex for vztmpl
stores the regex definition in PVE::Storage. One test had to be adapted because it tested obsolete code. Namely: it expects vztmpl to only end with .tar.gz, but the new regex also includes .tar.xz, there is nothing against allowing .tar.xz files as vztmpl files. Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
339a4eb3c0
commit
bba10cf4af
@ -166,12 +166,13 @@ my @tests = (
|
||||
'local:snippets/hookscript.pl',
|
||||
],
|
||||
},
|
||||
|
||||
# no matches
|
||||
{
|
||||
description => 'CT template, tar.xz',
|
||||
volname => "$storage_dir/template/cache/debian-10.0-standard_10.0-1_amd64.tar.xz",
|
||||
expected => [''],
|
||||
expected => [
|
||||
'vztmpl',
|
||||
'local:vztmpl/debian-10.0-standard_10.0-1_amd64.tar.xz',
|
||||
],
|
||||
},
|
||||
|
||||
# no matches, path or files with failures
|
||||
|
||||
Reference in New Issue
Block a user