]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/Plugin.pm
allow templates using .xz compression
[pve-storage.git] / PVE / Storage / Plugin.pm
index 092cf9a1f29e36d60cddc008cbdb1d5f639f50e7..310a6589adcb54227dd51983136b04a30593e62a 100644 (file)
@@ -364,7 +364,7 @@ sub parse_volname {
        return ('images', $name, $vmid, undef, undef, $isBase);
     } elsif ($volname =~ m!^iso/([^/]+\.[Ii][Ss][Oo])$!) {
        return ('iso', $1);
-    } elsif ($volname =~ m!^vztmpl/([^/]+\.tar\.gz)$!) {
+    } elsif ($volname =~ m!^vztmpl/([^/]+\.tar\.[gx]z)$!) {
        return ('vztmpl', $1);
     } elsif ($volname =~ m!^rootdir/(\d+)$!) {
        return ('rootdir', $1, $1);