]> git.proxmox.com Git - pve-storage.git/commitdiff
auto-detect format for files with vmdk extension
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Sep 2013 08:18:50 +0000 (10:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Sep 2013 08:18:50 +0000 (10:18 +0200)
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)" })