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'.
This commit is contained in:
Marek Marczykowski-Górecki 2016-03-07 01:00:15 +01:00 committed by Wojtek Porczyk
parent 422f30b969
commit 12f778b539

View File

@ -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