projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12a0cfb
)
Forcibly convert export data to str object
author
Michael Hanselmann
<hansmi@google.com>
Wed, 2 Apr 2008 14:15:07 +0000
(14:15 +0000)
committer
Michael Hanselmann
<hansmi@google.com>
Wed, 2 Apr 2008 14:15:07 +0000
(14:15 +0000)
ConfigParser.SafeConfigParser doesn't support unicode string objects.
Unicode string objects are returned by simplejson.
Reviewed-by: iustinp
lib/rpc.py
patch
|
blob
|
history
diff --git
a/lib/rpc.py
b/lib/rpc.py
index
51b1d2e
..
937f68d
100644
(file)
--- a/
lib/rpc.py
+++ b/
lib/rpc.py
@@
-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):