From a37fc2464a31b7499b14f67e87aca9278faad8f7 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Fri, 15 Apr 2016 19:57:23 +0200 Subject: [PATCH] Add XenPool.config() --- qubes/storage/xen.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qubes/storage/xen.py b/qubes/storage/xen.py index 01463b39..c1b0f803 100644 --- a/qubes/storage/xen.py +++ b/qubes/storage/xen.py @@ -248,6 +248,13 @@ class SizeMixIn(XenVolume): ''' Returns the actualy used space ''' return get_disk_usage(self.vid) + @property + def config(self): + ''' return config data for serialization to qubes.xml ''' + return {'name': self.name, + 'pool': self.pool, + 'size': str(self.size), + 'volume_type': self.volume_type} class ReadWriteFile(SizeMixIn):