mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
7451edbf39
commit
fbc4f2e894
1 file changed
+6
-4
@@ -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()
|
||||
|
||||