storage/lvm: add repr(ThinPool) for more meaningful test reports

This commit is contained in:
Marek Marczykowski-Górecki 2018-07-15 21:30:04 +02:00
parent e644378f18
commit 2af1815ab7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -90,6 +90,12 @@ class ThinPool(qubes.storage.Pool):
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
def config(self):
return {