From e8c303977b2de1437915ad5e2d2dce57f3f5e895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 12 Jun 2017 10:15:13 +0200 Subject: [PATCH] vm/adminvm: fix str(AdminVM) after changing its base BaseVM have no (useful) __str__ method. --- qubes/vm/adminvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/vm/adminvm.py b/qubes/vm/adminvm.py index a4b9fd33..9ba23b78 100644 --- a/qubes/vm/adminvm.py +++ b/qubes/vm/adminvm.py @@ -49,6 +49,9 @@ class AdminVM(qubes.vm.BaseVM): default='00000000-0000-0000-0000-000000000000', setter=qubes.property.forbidden) + def __str__(self): + return self.name + @property def attached_volumes(self): return []