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

[Xen-changelog] [xen-unstable] xend: Fix VDI.get_record



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1253003168 -3600
# Node ID 8f83388280008a40233f9bbcfa4b0237aa9f548d
# Parent  56595ee2720aded81ff3690948be5bcffe2b562c
xend: Fix VDI.get_record

We cannot get correct records of VDI by VDI.get_record.
The correct records of VDI are gotten by this patch.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendVDI.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff -r 56595ee2720a -r 8f8338828000 tools/python/xen/xend/XendVDI.py
--- a/tools/python/xen/xend/XendVDI.py  Tue Sep 15 09:25:41 2009 +0100
+++ b/tools/python/xen/xend/XendVDI.py  Tue Sep 15 09:26:08 2009 +0100
@@ -60,7 +60,8 @@ class XendVDI(AutoSaveObject):
                  'virtual_size',
                  'physical_utilisation',
                  'sharable',
-                 'read_only']
+                 'read_only',
+                 'type']
 
     SAVED_CFG_INT = ['sector_size', 'virtual_size', 'physical_utilisation']
     
@@ -155,11 +156,12 @@ class XendVDI(AutoSaveObject):
                 'name_description': self.name_description,
                 'virtual_size': self.virtual_size,
                 'physical_utilisation': self.physical_utilisation,
-                'sharable': False,
-                'readonly': False,
+                'sharable': self.sharable,
+                'read_only': self.read_only,
+                'type': self.type,
                 'SR': self.sr_uuid,
                 'other_config': self.other_config,
-                'VBDs': []}
+                'VBDs': self.vbds}
 
     def get_location(self):
         raise NotImplementedError()

_______________________________________________
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®.