mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2024-12-22 13:34:16 +03:00
esxi: anchor vmdk regex in parse_volname
otherwise, `volname.vmdk.raw` would be picked up as a `vmdk` formatted image, which may not be desired. Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
5784c84e8f
commit
93c1af6ba4
@ -421,7 +421,7 @@ sub parse_volname {
|
||||
return ('import', $volname, 0, undef, undef, undef, 'vmx') if $volname =~ /\.vmx$/;
|
||||
|
||||
my $format = 'raw';
|
||||
$format = 'vmdk' if $volname =~ /\.vmdk/;
|
||||
$format = 'vmdk' if $volname =~ /\.vmdk$/;
|
||||
return ('images', $volname, 0, undef, undef, undef, $format);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user