From 12f778b539d6243100ad31b8cef6617340c71d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 7 Mar 2016 01:00:15 +0100 Subject: [PATCH] qubes/vm: do not recursively use repr in BaseVM.__repr__ This will easily end up in infinite recursion. For example 'sys-net'.template points at 'fedora-23', which itself has 'fedora-23'.netvm set to 'sys-net'. --- qubes/vm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/vm/__init__.py b/qubes/vm/__init__.py index ee50758f..6cb233c5 100644 --- a/qubes/vm/__init__.py +++ b/qubes/vm/__init__.py @@ -319,7 +319,7 @@ class BaseVM(qubes.PropertyHolder): proprepr = [] for prop in self.property_list(): try: - proprepr.append('{}={!r}'.format( + proprepr.append('{}={!s}'.format( prop.__name__, getattr(self, prop.__name__))) except AttributeError: continue