storage/lvm: add repr(ThinPool) for more meaningful test reports
This commit is contained in:
parent
e644378f18
commit
2af1815ab7
@ -90,6 +90,12 @@ class ThinPool(qubes.storage.Pool):
|
|||||||
|
|
||||||
self._volume_objects_cache = {}
|
self._volume_objects_cache = {}
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<{} at {:#x} name={!r} volume_group={!r} thin_pool={!r}>'.\
|
||||||
|
format(
|
||||||
|
type(self).__name__, id(self),
|
||||||
|
self.name, self.volume_group, self.thin_pool)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user