Volume.__repr__ returns POOL_NAME:VOLUME_ID
This commit is contained in:
parent
09727b1cbd
commit
0ac40ddd4f
@ -78,9 +78,7 @@ class Volume(object):
|
|||||||
'volume_type': self.volume_type}
|
'volume_type': self.volume_type}
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '{}(name={!s}, pool={!r}, vid={!r}, volume_type={!r})'.format(
|
return '{!r}'.format(self.pool + ':' + self.vid)
|
||||||
self.__class__.__name__, self.name, self.pool, self.vid,
|
|
||||||
self.volume_type)
|
|
||||||
|
|
||||||
def block_device(self):
|
def block_device(self):
|
||||||
''' Return :py:class:`qubes.devices.BlockDevice` for serialization in
|
''' Return :py:class:`qubes.devices.BlockDevice` for serialization in
|
||||||
|
Loading…
Reference in New Issue
Block a user