Volume.__repr__ returns POOL_NAME:VOLUME_ID

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-05-12 16:11:37 +02:00
parent 09727b1cbd
commit 0ac40ddd4f
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -78,9 +78,7 @@ class Volume(object):
'volume_type': self.volume_type}
def __repr__(self):
return '{}(name={!s}, pool={!r}, vid={!r}, volume_type={!r})'.format(
self.__class__.__name__, self.name, self.pool, self.vid,
self.volume_type)
return '{!r}'.format(self.pool + ':' + self.vid)
def block_device(self):
''' Return :py:class:`qubes.devices.BlockDevice` for serialization in