]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage.pm
factoring out regex for vztmpl
authorLorenz Stechauner <l.stechauner@proxmox.com>
Wed, 23 Jun 2021 13:10:15 +0000 (15:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 18:19:09 +0000 (20:19 +0200)
commitbba10cf4afc10a1a376051c16e4e9a2a60b35aac
tree63e7b1fc7a5d19b23c5b2651a76ecceaa1500109
parent339a4eb3c0ffa634e74d2c8081528d0a45a09e3d
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>
PVE/API2/Storage/Status.pm
PVE/Storage.pm
PVE/Storage/Plugin.pm
test/path_to_volume_id_test.pm