Commit d7fa2cbb authored by Rafael Monnerat's avatar Rafael Monnerat

SlapTool: Only convert to string if value ins't an unicode value

parent fe1ed31f
......@@ -1211,8 +1211,10 @@ class SlapTool(BaseTool):
connection_xml)
instance = etree.Element('instance')
for parameter_id, parameter_value in partition_parameter_kw.iteritems():
if not isinstance(parameter_value, unicode):
parameter_value = str(parameter_value)
etree.SubElement(instance, "parameter",
attrib={'id':parameter_id}).text = str(parameter_value)
attrib={'id':parameter_id}).text = 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