From 84eb082ed28802590ad9ff6c09915dde060fcb93 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Thu, 2 Jul 2015 13:57:19 +0200 Subject: [PATCH] qubes/vm/qubesvm: fix label setting/loading --- qubes/vm/qubesvm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index ec9e9e00..fcfc17d4 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -115,8 +115,7 @@ class QubesVM(qubes.vm.BaseVM): # label = qubes.property('label', - setter=(lambda self, prop, value: self.app.labels[ - int(value.rsplit('-', 1)[1])]), + setter=(lambda self, prop, value: self.app.get_label(value)), ls_width=14, doc='''Colourful label assigned to VM. This is where the colour of the padlock is set.''')