From 8fc3772017d528c0caac0f49e5b6b4ce1725c588 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Sat, 28 May 2016 18:06:12 +0200 Subject: [PATCH] Add Volume.__str__() --- qubes/storage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index d82fe6ec..e07d772d 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -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.