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@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-09-15 09:26:08 +01:00
1 parent 7451edbf39
commit fbc4f2e894
1 file changed
+6 -4
+6 -4
View File
@@ -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()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.