Commit 2d3e73c4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Forcibly convert export data to str object

ConfigParser.SafeConfigParser doesn't support unicode string objects.
Unicode string objects are returned by simplejson.

Reviewed-by: iustinp
parent 12a0cfbe
......@@ -632,7 +632,7 @@ def call_export_info(node, path):
result = c.getresult().get(node, False)
if not result:
return result
return objects.SerializableConfigParser.Loads(result)
return objects.SerializableConfigParser.Loads(str(result))
def call_instance_os_import(node, inst, osdev, swapdev, src_node, src_image):
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