mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xend: xenapi: Suspended domain causes fault if vif.get_all_records() is called
A single suspended domain on the system causes a fault when vif.get_all_records() is called since this returns an ErrorDescription and no 'Value' in the 'v' dictionary. This patch now returns a 'None' as Value which might not be optimal but better than faulting. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
c68c6c6b18
commit
d61d5e12e1
1 file changed
+1
-1
@@ -555,7 +555,7 @@ class XendAPI(object):
|
||||
return xen_api_success(ref)
|
||||
|
||||
def unpack(v):
|
||||
return v['Value']
|
||||
return v.get('Value')
|
||||
|
||||
def _get_all_records(_api_cls):
|
||||
return lambda s, session: \
|
||||
|
||||