mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Cope with a response that's not a dictionary.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
5d0eb105b0
commit
4de19fce56
1 file changed
+1
-1
@@ -106,7 +106,7 @@ class Session(xen.util.xmlrpclib2.ServerProxy):
|
||||
|
||||
|
||||
def _parse_result(result):
|
||||
if 'Status' not in result:
|
||||
if type(result) != dict or 'Status' not in result:
|
||||
raise xmlrpclib.Fault(500, 'Missing Status in response from server')
|
||||
if result['Status'] == 'Success':
|
||||
if 'Value' in result:
|
||||
|
||||