Skip to content

Commit

Permalink
Added default ovf namespace to root element Envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
breillyr committed Mar 8, 2019
1 parent 43f353f commit d36d9fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imagefactory_plugins/ovfcommon/ovfcommon.py
Expand Up @@ -67,7 +67,8 @@ def __init__(self, img_uuid, vol_uuid, tpl_uuid, disk,
self.pool_id = pool_id

def generate_ovf_xml(self):
etroot = ElementTree.Element('ovf:Envelope')
etroot = ElementTree.Element('Envelope')
etroot.set("xmlns", "http://schemas.dmtf.org/ovf/envelope/1")
etroot.set('xmlns:ovf', "http://schemas.dmtf.org/ovf/envelope/1/")
etroot.set('xmlns:rasd', "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData")
etroot.set('xmlns:vssd', "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData")
Expand Down

0 comments on commit d36d9fc

Please sign in to comment.