ovf import: disks: mave ovf namespace in resource path optional
Some OVFs like for example the one from the GNS3 OVA doesn't has that namespace/prefix, and does't really hurts us to make it optional as long as the rest is correct. Brings us nearer to have working disks with GNS3. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -267,7 +267,7 @@ sub parse_ovf {
|
||||
# RFC 3986 "2.3. Unreserved Characters"
|
||||
my $valid_uripath_chars = qr/[[:alnum:]]|[\-\._~]/;
|
||||
|
||||
if ($host_resource =~ m|^ovf:/(${valid_uripath_chars}+)/(${valid_uripath_chars}+)$|) {
|
||||
if ($host_resource =~ m|^(?:ovf:)?/(${valid_uripath_chars}+)/(${valid_uripath_chars}+)$|) {
|
||||
$disk_section_path = $1;
|
||||
$disk_id = $2;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user