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:
parent
422f30b969
commit
12f778b539
@ -319,7 +319,7 @@ class BaseVM(qubes.PropertyHolder):
|
|||||||
proprepr = []
|
proprepr = []
|
||||||
for prop in self.property_list():
|
for prop in self.property_list():
|
||||||
try:
|
try:
|
||||||
proprepr.append('{}={!r}'.format(
|
proprepr.append('{}={!s}'.format(
|
||||||
prop.__name__, getattr(self, prop.__name__)))
|
prop.__name__, getattr(self, prop.__name__)))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user