Add Volume.__str__()
This commit is contained in:
parent
3dd77719c1
commit
8fc3772017
@ -99,6 +99,9 @@ class Volume(object):
|
||||
def __hash__(self):
|
||||
return hash('%s:%s %s' % (self.pool, self.vid, self.volume_type))
|
||||
|
||||
def __str__(self):
|
||||
return "{!s}:{!s}".format(self.pool, self.vid)
|
||||
|
||||
|
||||
class Storage(object):
|
||||
''' Class for handling VM virtual disks.
|
||||
|
Loading…
Reference in New Issue
Block a user