Added get_record method.

By Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-25 14:59:11 +00:00
1 parent d9510a25ab
commit d3fa64928f
1 file changed
+15
+15
View File
@@ -141,6 +141,21 @@ class XendVDI(AutoSaveObject):
return True
def get_record(self):
return {'uuid': self.uuid,
'name_label': self.name_label,
'name_description': self.name_description,
'virtual_size': self.virtual_size,
'physical_utilisation': self.physical_utilisation,
'sector_size': self.sector_size,
'parent': None,
'children': [],
'sharable': False,
'readonly': False,
'SR': self.sr.get_uuid(),
'VBDs': []}
class XendQCOWVDI(XendVDI):
def __init__(self, uuid, sr_uuid, qcow_path, cfg_path, vsize, psize):
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.