]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Storage/Content.pm
auto-detect format for files with vmdk extension
[pve-storage.git] / PVE / API2 / Storage / Content.pm
index e885b38afa2b1aad19a88a343ee24d9be56c6e3f..c8261d4886ec9b213cd32618cf63e28ede79fa7e 100644 (file)
@@ -152,7 +152,7 @@ __PACKAGE__->register_method ({
        }
 
        # extract FORMAT from name
-       if ($name =~ m/\.(raw|qcow2)$/) {
+       if ($name =~ m/\.(raw|qcow2|vmdk)$/) {
            my $fmt = $1;
 
            raise_param_exc({ format => "different storage formats ($param->{format} != $fmt)" })