Volume.__repr__ returns POOL_NAME:VOLUME_ID
Tento commit je obsažen v:
rodič
09727b1cbd
revize
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
|
||||||
|
|||||||
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele