qvm-ls: fix printing label

This commit is contained in:
Wojtek Porczyk 2015-09-23 15:07:48 +02:00
parent e7cba0214f
commit af1a6a49bd
2 changed files with 4 additions and 1 deletions

View File

@ -409,6 +409,10 @@ class StatusColumn(Column):
# todo maxmem
Column('LABEL', width=14,
attr='label.name',
doc='Colour of the label.')
Column('GATEWAY', width=15,
attr='netvm.gateway',
doc='Network gateway.')

View File

@ -131,7 +131,6 @@ class QubesVM(qubes.vm.BaseVM):
label = qubes.property('label',
setter=_setter_label,
saver=(lambda self, prop, value: 'label-{}'.format(value.index)),
ls_width=14,
doc='''Colourful label assigned to VM. This is where the colour of the
padlock is set.''')