From e30f894df97fb4f603713c95b003995065c0a76e Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Wed, 27 Apr 2016 17:17:32 +0200 Subject: [PATCH] Add Volume.removable field --- qubes/storage/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index 0c528a5f..e3d3d424 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -58,13 +58,15 @@ class Volume(object): script = None usage = 0 - def __init__(self, name, pool, volume_type, vid=None, size=0, **kwargs): + def __init__(self, name, pool, volume_type, vid=None, size=0, + removable=False, **kwargs): super(Volume, self).__init__(**kwargs) self.name = str(name) self.pool = str(pool) self.vid = vid self.size = size self.volume_type = volume_type + self.removable = removable def __xml__(self): return lxml.etree.Element('volume', **self.config)