[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEND] Fix missing SR references in XendAPI



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 808f5aa6dbb017d0e2d5c69705b53f6985aa96c1
# Parent  f7f8f003892065b0d9f1d8105cdba35e81660574
[XEND] Fix missing SR references in XendAPI

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    3 +++
 1 files changed, 3 insertions(+)

diff -r f7f8f0038920 -r 808f5aa6dbb0 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Thu Oct 26 19:43:11 2006 +0100
+++ b/tools/python/xen/xend/XendAPI.py  Fri Oct 27 16:44:15 2006 +0100
@@ -1327,12 +1327,15 @@ class XendAPI:
         return xen_api_success(sr.list_images())
 
     def sr_get_virtual_allocation(self, session, sr_ref):
+        sr = XendNode.instance().get_sr()        
         return sr.used_space_bytes()
 
     def sr_get_physical_utilisation(self, session, sr_ref):
+        sr = XendNode.instance().get_sr()        
         return sr.used_space_bytes()
 
     def sr_get_physical_size(self, session, sr_ref):
+        sr = XendNode.instance().get_sr()        
         return sr.total_space_bytes()
     
     def sr_get_type(self, session, sr_ref):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.