esxi: fix #5587: add support for older version of vmx storage filepaths
Allow the ESXi storage disk entry property "fileName" to be flatcased
("filename") in addition to being camelcased ("fileName"). This adds
compatibility with older ESXi .vmx configuration files.
Signed-off-by: Daniel Kral <d.kral@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
70c480b9f1
commit
ef9f955e7e
@ -754,7 +754,7 @@ sub manifest { $_[0]->{'pve.manifest'} }
|
||||
# (Also used for the fileName config key...)
|
||||
sub is_disk_entry : prototype($) {
|
||||
my ($id) = @_;
|
||||
if ($id =~ /^(scsi|ide|sata|nvme)(\d+:\d+)(:?\.fileName)?$/) {
|
||||
if ($id =~ /^(scsi|ide|sata|nvme)(\d+:\d+)(:?\.file[nN]ame)?$/) {
|
||||
return ($1, $2);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user