mirror of
https://git.proxmox.com/git/pve-esxi-import-tools
synced 2025-04-28 10:02:36 +00:00
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:
parent
a05f1ee86c
commit
131824070d
@ -6,7 +6,7 @@ use regex::Regex;
|
||||
use tokio::io::AsyncRead;
|
||||
|
||||
static DISK_RE: Lazy<Regex> = Lazy::new(|| {
|
||||
Regex::new(r#"^((?:scsi|ide|sata|nvme)\d+:\d+)\.fileName$"#)
|
||||
Regex::new(r#"^((?:scsi|ide|sata|nvme)\d+:\d+)\.file[nN]ame$"#)
|
||||
.expect("failed to create disk key regex")
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user