Volume add size property wrapper
This commit is contained in:
parent
ae72e294cd
commit
b863152f73
@ -96,7 +96,7 @@ class Volume(object):
|
|||||||
self.revisions_to_keep = revisions_to_keep
|
self.revisions_to_keep = revisions_to_keep
|
||||||
self.rw = rw
|
self.rw = rw
|
||||||
self.save_on_stop = save_on_stop
|
self.save_on_stop = save_on_stop
|
||||||
self.size = int(size)
|
self._size = int(size)
|
||||||
self.snap_on_start = snap_on_start
|
self.snap_on_start = snap_on_start
|
||||||
self.source = source
|
self.source = source
|
||||||
self.vid = vid
|
self.vid = vid
|
||||||
@ -133,6 +133,10 @@ class Volume(object):
|
|||||||
msg = "{!s} has revisions not implemented".format(self.__class__)
|
msg = "{!s} has revisions not implemented".format(self.__class__)
|
||||||
raise NotImplementedError(msg)
|
raise NotImplementedError(msg)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def size(self):
|
||||||
|
return self._size
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
''' return config data for serialization to qubes.xml '''
|
''' return config data for serialization to qubes.xml '''
|
||||||
|
Loading…
Reference in New Issue
Block a user