Commit 36b0e56c authored by Rafael Monnerat's avatar Rafael Monnerat

SlapOSTool: Ensure that parameter_value is always a string

  The current code expected to have a string on the XML
parent d3ad8698
......@@ -1212,7 +1212,7 @@ class SlapTool(BaseTool):
instance = etree.Element('instance')
for parameter_id, parameter_value in partition_parameter_kw.iteritems():
etree.SubElement(instance, "parameter",
attrib={'id':parameter_id}).text = parameter_value
attrib={'id':parameter_id}).text = str(parameter_value)
connection_xml = etree.tostring(instance, pretty_print=True,
xml_declaration=True, encoding='utf-8')
reference = software_instance.getReference()
......
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 to comment