Commit f9f78ee7 by Szeberényi Imre

raw_data fix

parent 3db7df81
...@@ -93,7 +93,9 @@ class VMInstance: ...@@ -93,7 +93,9 @@ class VMInstance:
}) })
# Building raw data into xml # Building raw data into xml
if self.raw_data: if self.raw_data:
xml_top.append(ET.fromstring(self.raw_data)) raw_data = ET.fromstring("<raw_data>" + self.raw_data + "</raw_data>")
for child in raw_data:
xml_top.append(child)
# Basic virtual machine paramaters # Basic virtual machine paramaters
ET.SubElement(xml_top, 'name').text = self.name ET.SubElement(xml_top, 'name').text = self.name
ET.SubElement(xml_top, 'vcpu').text = str(self.vcpu) ET.SubElement(xml_top, 'vcpu').text = str(self.vcpu)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment