ia64/xen-unstable
changeset 13166:f7ac2c963f77
Cope with a response that's not a dictionary.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Fri Dec 22 11:34:13 2006 +0000 (2006-12-22) |
parents | f1ddc050d848 |
children | 0d0e13ff1adf |
files | tools/python/xen/xm/XenAPI.py |
line diff
1.1 --- a/tools/python/xen/xm/XenAPI.py Thu Dec 21 20:44:35 2006 +0000 1.2 +++ b/tools/python/xen/xm/XenAPI.py Fri Dec 22 11:34:13 2006 +0000 1.3 @@ -106,7 +106,7 @@ class Session(xen.util.xmlrpclib2.Server 1.4 1.5 1.6 def _parse_result(result): 1.7 - if 'Status' not in result: 1.8 + if type(result) != dict or 'Status' not in result: 1.9 raise xmlrpclib.Fault(500, 'Missing Status in response from server') 1.10 if result['Status'] == 'Success': 1.11 if 'Value' in result: