ovf import: regisiter "vmw" namespace
This is used when finding the firmware type, so register it here or libxml/xpath will complain about an "Undefined namespace prefix" The schema URL was taken from some OVFs found in the wild. Reported-by: Filip Schauer <f.schauer@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -191,6 +191,7 @@ sub parse_ovf {
|
|||||||
# 'ovf' is the default namespace so it will prepended to each xml element
|
# 'ovf' is the default namespace so it will prepended to each xml element
|
||||||
my $xpc = XML::LibXML::XPathContext->new($dom);
|
my $xpc = XML::LibXML::XPathContext->new($dom);
|
||||||
$xpc->registerNs('ovf', 'http://schemas.dmtf.org/ovf/envelope/1');
|
$xpc->registerNs('ovf', 'http://schemas.dmtf.org/ovf/envelope/1');
|
||||||
|
$xpc->registerNs('vmw', 'http://www.vmware.com/schema/ovf');
|
||||||
$xpc->registerNs('rasd', 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData');
|
$xpc->registerNs('rasd', 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData');
|
||||||
$xpc->registerNs('vssd', 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData');
|
$xpc->registerNs('vssd', 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user