ia64/xen-unstable
changeset 12147:808f5aa6dbb0
[XEND] Fix missing SR references in XendAPI
Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Alastair Tse <atse@xensource.com>
author | Alastair Tse <atse@xensource.com> |
---|---|
date | Fri Oct 27 16:44:15 2006 +0100 (2006-10-27) |
parents | f7f8f0038920 |
children | 57f59959aa80 |
files | tools/python/xen/xend/XendAPI.py |
line diff
1.1 --- a/tools/python/xen/xend/XendAPI.py Thu Oct 26 19:43:11 2006 +0100 1.2 +++ b/tools/python/xen/xend/XendAPI.py Fri Oct 27 16:44:15 2006 +0100 1.3 @@ -1327,12 +1327,15 @@ class XendAPI: 1.4 return xen_api_success(sr.list_images()) 1.5 1.6 def sr_get_virtual_allocation(self, session, sr_ref): 1.7 + sr = XendNode.instance().get_sr() 1.8 return sr.used_space_bytes() 1.9 1.10 def sr_get_physical_utilisation(self, session, sr_ref): 1.11 + sr = XendNode.instance().get_sr() 1.12 return sr.used_space_bytes() 1.13 1.14 def sr_get_physical_size(self, session, sr_ref): 1.15 + sr = XendNode.instance().get_sr() 1.16 return sr.total_space_bytes() 1.17 1.18 def sr_get_type(self, session, sr_ref):