qubes/tools/qvm_ls: fix getting columns from mixin
This commit is contained in:
parent
21d6d51cbb
commit
6bc30b2e0b
@ -198,8 +198,11 @@ def process_class(cls):
|
|||||||
:param qubes.vm.BaseVMMeta cls: Class to round up.
|
:param qubes.vm.BaseVMMeta cls: Class to round up.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
for prop in cls.__dict__.values():
|
for klass in cls.__mro__:
|
||||||
holder = prop.fget if isinstance(prop, __builtin__.property) else prop
|
for prop in klass.__dict__.values():
|
||||||
|
holder = prop.fget \
|
||||||
|
if isinstance(prop, __builtin__.property) \
|
||||||
|
else prop
|
||||||
if not hasattr(holder, 'ls_head') or holder.ls_head is None:
|
if not hasattr(holder, 'ls_head') or holder.ls_head is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user